Fix various clippy lints

This commit is contained in:
Jack Grigg
2021-08-20 16:22:22 +01:00
parent 2c90195f99
commit f5f140d172
5 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ impl Recipient {
/// This accepts both compressed (as used by the plugin) and uncompressed (as used in
/// the YubiKey certificate) encodings.
pub(crate) fn from_encoded(encoded: &p256::EncodedPoint) -> Option<Self> {
p256::PublicKey::from_encoded_point(&encoded).map(Recipient)
p256::PublicKey::from_encoded_point(encoded).map(Recipient)
}
/// Returns the compressed SEC-1 encoding of this recipient.