mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 05:06:14 +01:00
chore: clippy
This commit is contained in:
@@ -298,7 +298,7 @@ mod tests {
|
||||
let pubkey = PublicKey::from_str(key_str).unwrap();
|
||||
let v_key: VerifyingKey = pubkey.clone().try_into().unwrap();
|
||||
|
||||
let p: PublicKey = v_key.try_into().unwrap();
|
||||
let p: PublicKey = v_key.into();
|
||||
|
||||
assert_eq!(p, pubkey);
|
||||
}
|
||||
|
||||
@@ -247,7 +247,7 @@ impl TryFrom<Secret> for P2PKConditions {
|
||||
.secret_data
|
||||
.tags
|
||||
.into_iter()
|
||||
.flat_map(|t| Tag::try_from(t))
|
||||
.flat_map(Tag::try_from)
|
||||
.map(|t| (t.kind(), t))
|
||||
.collect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user