浏览代码

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")]