Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
correct clippy warn
Browse files Browse the repository at this point in the history
  • Loading branch information
musitdev committed Apr 9, 2024
1 parent 8a8cf38 commit 10f1d3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/node/src/txvalidation/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl TxEvent<WaitTx> {
ret_tx.insert(0, tx);
ret_tx
})
.unwrap_or(vec![]);
.unwrap_or_default();

Ok(new_txs)
}
Expand Down
5 changes: 1 addition & 4 deletions crates/node/src/types/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,7 @@ impl Payload {
}

pub fn is_run_payload(&self) -> bool {
match self {
Payload::Run { .. } => true,
_ => false,
}
matches!(self, Payload::Run { .. })
}

pub fn serialize_into(&self, buf: &mut Vec<u8>) {
Expand Down

0 comments on commit 10f1d3e

Please sign in to comment.