File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ impl MimeMessage {
476
476
}
477
477
478
478
let mut signatures = if let Some ( ref decrypted_msg) = decrypted_msg {
479
- crate :: pgp:: valid_signature_fingerprints ( decrypted_msg, & public_keyring) ?
479
+ crate :: pgp:: valid_signature_fingerprints ( decrypted_msg, & public_keyring)
480
480
} else {
481
481
HashSet :: new ( )
482
482
} ;
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ pub fn pk_decrypt(
272
272
pub fn valid_signature_fingerprints (
273
273
msg : & pgp:: composed:: Message ,
274
274
public_keys_for_validation : & [ SignedPublicKey ] ,
275
- ) -> Result < HashSet < Fingerprint > > {
275
+ ) -> HashSet < Fingerprint > {
276
276
let mut ret_signature_fingerprints: HashSet < Fingerprint > = Default :: default ( ) ;
277
277
if msg. is_signed ( ) {
278
278
for pkey in public_keys_for_validation {
@@ -282,7 +282,7 @@ pub fn valid_signature_fingerprints(
282
282
}
283
283
}
284
284
}
285
- Ok ( ret_signature_fingerprints)
285
+ ret_signature_fingerprints
286
286
}
287
287
288
288
/// Validates detached signature.
@@ -359,7 +359,7 @@ mod tests {
359
359
let mut msg = pk_decrypt ( ctext. to_vec ( ) , private_keys_for_decryption) ?;
360
360
let content = msg. as_data_vec ( ) ?;
361
361
let ret_signature_fingerprints =
362
- valid_signature_fingerprints ( & msg, public_keys_for_validation) ? ;
362
+ valid_signature_fingerprints ( & msg, public_keys_for_validation) ;
363
363
364
364
Ok ( ( msg, ret_signature_fingerprints, content) )
365
365
}
You can’t perform that action at this time.
0 commit comments