Skip to content

Commit

Permalink
Remove unnecessary 'default'
Browse files Browse the repository at this point in the history
  • Loading branch information
gmart7t2 committed Aug 8, 2023
1 parent af36cc7 commit 5579982
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/subcommand/find.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ pub struct Output {
pub start: u64,
pub size: u64,
pub satpoint: SatPoint,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[serde(skip_serializing_if = "Option::is_none")]
pub address: Option<Address<NetworkUnchecked>>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[serde(skip_serializing_if = "Option::is_none")]
pub blockhash: Option<bitcoin::BlockHash>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[serde(skip_serializing_if = "Option::is_none")]
pub date: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timestamp: Option<usize>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<u64>,
}

Expand Down

0 comments on commit 5579982

Please sign in to comment.