소스 검색

chore: clippy

thesimplekid 1 년 전
부모
커밋
17b6c17053
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      crates/cashu-sdk/src/wallet.rs

+ 2 - 6
crates/cashu-sdk/src/wallet.rs

@@ -76,12 +76,8 @@ impl<C: Client> Wallet<C> {
             .partition(|(_, &b)| b);
 
         Ok(ProofsStatus {
-            spendable: spendable
-                .into_iter()
-                .map(|(s, _)| s.into())
-                .cloned()
-                .collect(),
-            spent: spent.into_iter().map(|(s, _)| s.into()).cloned().collect(),
+            spendable: spendable.into_iter().map(|(s, _)| s).cloned().collect(),
+            spent: spent.into_iter().map(|(s, _)| s).cloned().collect(),
         })
     }