diff --git a/Cargo.toml b/Cargo.toml index b6f4fef690d5..01a6eaa7de56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,6 +44,8 @@ uninlined-format-args = "warn" use-self = "warn" redundant-clone = "warn" octal-escapes = "allow" +# until is fixed +literal-string-with-formatting-args = "allow" [workspace.lints.rust] rust-2018-idioms = "warn" diff --git a/crates/anvil/src/config.rs b/crates/anvil/src/config.rs index 9e22adeed169..7ed1432fdcd6 100644 --- a/crates/anvil/src/config.rs +++ b/crates/anvil/src/config.rs @@ -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) -> Self { - self.fork_chain_id = fork_chain_id.map(Into::into); + self.fork_chain_id = fork_chain_id; self } diff --git a/crates/anvil/src/eth/backend/db.rs b/crates/anvil/src/eth/backend/db.rs index db34d9c1995e..55159f4d3460 100644 --- a/crates/anvil/src/eth/backend/db.rs +++ b/crates/anvil/src/eth/backend/db.rs @@ -482,7 +482,7 @@ impl From 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(), } } } @@ -492,7 +492,7 @@ impl From 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(), } } }