File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ uninlined-format-args = "warn"
4444use-self = " warn"
4545redundant-clone = " warn"
4646octal-escapes = " allow"
47+ # until <https://github.com/rust-lang/rust-clippy/issues/13885> is fixed
48+ literal-string-with-formatting-args = " allow"
4749
4850[workspace .lints .rust ]
4951rust-2018-idioms = " warn"
Original file line number Diff line number Diff line change @@ -800,7 +800,7 @@ impl NodeConfig {
800800 /// Sets the `fork_chain_id` to use to fork off local cache from
801801 #[ must_use]
802802 pub fn with_fork_chain_id ( mut self , fork_chain_id : Option < U256 > ) -> Self {
803- self . fork_chain_id = fork_chain_id. map ( Into :: into ) ;
803+ self . fork_chain_id = fork_chain_id;
804804 self
805805 }
806806
Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ impl From<Block> for SerializableBlock {
482482 Self {
483483 header : block. header ,
484484 transactions : block. transactions . into_iter ( ) . map ( Into :: into) . collect ( ) ,
485- ommers : block. ommers . into_iter ( ) . map ( Into :: into ) . collect ( ) ,
485+ ommers : block. ommers . into_iter ( ) . collect ( ) ,
486486 }
487487 }
488488}
@@ -492,7 +492,7 @@ impl From<SerializableBlock> for Block {
492492 Self {
493493 header : block. header ,
494494 transactions : block. transactions . into_iter ( ) . map ( Into :: into) . collect ( ) ,
495- ommers : block. ommers . into_iter ( ) . map ( Into :: into ) . collect ( ) ,
495+ ommers : block. ommers . into_iter ( ) . collect ( ) ,
496496 }
497497 }
498498}
You can’t perform that action at this time.
0 commit comments