Skip to content

Commit

Permalink
refactor: fix manual_unwrap_or_default
Browse files Browse the repository at this point in the history
clippy lint in nightly
  • Loading branch information
b-zee committed Jun 17, 2024
1 parent b3bbf0d commit 6e8bdb2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sn_transfers/src/wallet/data_payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ impl PaymentQuote {
.as_secs()
.to_le_bytes(),
);
let serialised_quoting_metrics = match rmp_serde::to_vec(quoting_metrics) {
Ok(quoting_metrics_vec) => quoting_metrics_vec,
Err(_err) => vec![],
};
let serialised_quoting_metrics = rmp_serde::to_vec(quoting_metrics).unwrap_or_default();
bytes.extend_from_slice(&serialised_quoting_metrics);
bytes
}
Expand Down

0 comments on commit 6e8bdb2

Please sign in to comment.