Skip to content

Commit

Permalink
chore: make clippy happy (#9601)
Browse files Browse the repository at this point in the history
* chore: make clippy happy

* allow literals tring with formatting args global
  • Loading branch information
mattsse authored Dec 29, 2024
1 parent 0caabdd commit ffaa68f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ uninlined-format-args = "warn"
use-self = "warn"
redundant-clone = "warn"
octal-escapes = "allow"
# until <https://github.com/rust-lang/rust-clippy/issues/13885> is fixed
literal-string-with-formatting-args = "allow"

[workspace.lints.rust]
rust-2018-idioms = "warn"
Expand Down
2 changes: 1 addition & 1 deletion crates/anvil/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ impl NodeConfig {
/// Sets the `fork_chain_id` to use to fork off local cache from
#[must_use]
pub fn with_fork_chain_id(mut self, fork_chain_id: Option<U256>) -> Self {
self.fork_chain_id = fork_chain_id.map(Into::into);
self.fork_chain_id = fork_chain_id;
self
}

Expand Down
4 changes: 2 additions & 2 deletions crates/anvil/src/eth/backend/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ impl From<Block> for SerializableBlock {
Self {
header: block.header,
transactions: block.transactions.into_iter().map(Into::into).collect(),
ommers: block.ommers.into_iter().map(Into::into).collect(),
ommers: block.ommers.into_iter().collect(),
}
}
}
Expand All @@ -492,7 +492,7 @@ impl From<SerializableBlock> for Block {
Self {
header: block.header,
transactions: block.transactions.into_iter().map(Into::into).collect(),
ommers: block.ommers.into_iter().map(Into::into).collect(),
ommers: block.ommers.into_iter().collect(),
}
}
}
Expand Down

0 comments on commit ffaa68f

Please sign in to comment.