mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 13:31:10 +00:00
Easy PR: Fix warnings from latest nightly (#14195)
* unneeded mut * remove needless borrows
This commit is contained in:
@@ -467,7 +467,7 @@ impl ConnectionHandler for NotifsHandler {
|
||||
match event {
|
||||
ConnectionEvent::FullyNegotiatedInbound(inbound) => {
|
||||
let (mut in_substream_open, protocol_index) = inbound.protocol;
|
||||
let mut protocol_info = &mut self.protocols[protocol_index];
|
||||
let protocol_info = &mut self.protocols[protocol_index];
|
||||
|
||||
match protocol_info.state {
|
||||
State::Closed { pending_opening } => {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user