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

@@ -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 } => {