diff options
Diffstat (limited to 'guide/src/chapter_01.md')
-rw-r--r-- | guide/src/chapter_01.md | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/guide/src/chapter_01.md b/guide/src/chapter_01.md index 9770e089..16020b6b 100644 --- a/guide/src/chapter_01.md +++ b/guide/src/chapter_01.md @@ -128,8 +128,6 @@ fn main() { # Some(VerificationResult::Error { error, .. }) => # return Err(failure::err_msg( # format!("Bad signature: {:?}", error))), -# Some(VerificationResult::BadChecksum { .. }) => -# return Err(failure::err_msg("Bad signature")), # None => # return Err(failure::err_msg("No signature")), # } @@ -276,8 +274,6 @@ fn generate() -> openpgp::Result<openpgp::Cert> { # Some(VerificationResult::Error { error, .. }) => # return Err(failure::err_msg( # format!("Bad signature: {:?}", error))), -# Some(VerificationResult::BadChecksum { .. }) => -# return Err(failure::err_msg("Bad signature")), # None => # return Err(failure::err_msg("No signature")), # } @@ -424,8 +420,6 @@ fn sign(sink: &mut Write, plaintext: &str, tsk: &openpgp::Cert) # Some(VerificationResult::Error { error, .. }) => # return Err(failure::err_msg( # format!("Bad signature: {:?}", error))), -# Some(VerificationResult::BadChecksum { .. }) => -# return Err(failure::err_msg("Bad signature")), # None => # return Err(failure::err_msg("No signature")), # } @@ -583,8 +577,6 @@ impl<'a> VerificationHelper for Helper<'a> { Some(VerificationResult::Error { error, .. }) => return Err(failure::err_msg( format!("Bad signature: {:?}", error))), - Some(VerificationResult::BadChecksum { .. }) => - return Err(failure::err_msg("Bad signature")), None => return Err(failure::err_msg("No signature")), } |