reviewdog [clippy] report
reported by reviewdog 🐶
Findings (1)
primitives/src/trie/mpt.rs|573 col 63| error: this expression creates a reference which is immediately dereferenced by the compiler
--> primitives/src/trie/mpt.rs:573:63
|
573 | self.data = MptNodeData::Leaf(to_encoded_path(&key_nibs, true), value);
| ^^^^^^^^^ help: change this to: key_nibs
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: -D clippy::needless-borrow
implied by -D warnings
= help: to override -D warnings
add #[allow(clippy::needless_borrow)]
Filtered Findings (0)
Annotations
Check failure on line 573 in primitives/src/trie/mpt.rs
github-actions / clippy
[clippy] primitives/src/trie/mpt.rs#L573
error: this expression creates a reference which is immediately dereferenced by the compiler
--> primitives/src/trie/mpt.rs:573:63
|
573 | self.data = MptNodeData::Leaf(to_encoded_path(&key_nibs, true), value);
| ^^^^^^^^^ help: change this to: `key_nibs`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
Raw output
primitives/src/trie/mpt.rs:573:63:e:error: this expression creates a reference which is immediately dereferenced by the compiler
--> primitives/src/trie/mpt.rs:573:63
|
573 | self.data = MptNodeData::Leaf(to_encoded_path(&key_nibs, true), value);
| ^^^^^^^^^ help: change this to: `key_nibs`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
__END__