Easy PR: Fix warnings from latest nightly (#14195)

* unneeded mut

* remove needless borrows
This commit is contained in:
Squirrel authored and GitHub committed 2023-05-23 17:06:48 +02:00
1 parent 0fd0fb44d6
commit ea21a495f8
13 files changed
+31 -33

No files matched your search

+1 -1
View File
@@ -150,7 +150,7 @@ where
} else {
values.key_values
};
let mut entry = self.state.entry(values.state_root).or_default();
let entry = self.state.entry(values.state_root).or_default();
if entry.0.len() > 0 && entry.1.len() > 1 {
// Already imported child_trie with same root.
// Warning this will not work with parallel download.