소스 검색

refactor: default on MintInfo

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

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

@@ -45,7 +45,7 @@ impl<'de> Deserialize<'de> for MintVersion {
 }
 
 /// Mint Info [NIP-09]
-#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
+#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
 pub struct MintInfo {
     /// name of the mint and should be recognizable
     #[serde(skip_serializing_if = "Option::is_none")]