浏览代码

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())
     }
 }