소스 검색

chore: clippy

thesimplekid 1 년 전
부모
커밋
4780e139d9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      crates/cashu/src/nuts/nut01.rs

+ 1 - 1
crates/cashu/src/nuts/nut01.rs

@@ -64,7 +64,7 @@ impl TryFrom<&PublicKey> for VerifyingKey {
 #[cfg(feature = "nut11")]
 impl From<VerifyingKey> for PublicKey {
     fn from(value: VerifyingKey) -> PublicKey {
-        PublicKey(value.try_into().unwrap())
+        PublicKey(value.into())
     }
 }