Skip to content

Commit 05e6e44

Browse files
committed
f ignore unused variable
1 parent 30aecdd commit 05e6e44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning-net-tokio/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl Connection {
151151
tokio::select! {
152152
v = write_avail_receiver.recv() => {
153153
assert!(v.is_some()); // We can't have dropped the sending end, its in the us Arc!
154-
if let Err(e) = peer_manager.write_buffer_space_avail(&mut our_descriptor) {
154+
if let Err(_) = peer_manager.write_buffer_space_avail(&mut our_descriptor) {
155155
break Disconnect::CloseConnection;
156156
}
157157
},
@@ -167,10 +167,10 @@ impl Connection {
167167
us_lock.read_paused = true;
168168
}
169169
},
170-
Err(e) => break Disconnect::CloseConnection,
170+
Err(_) => break Disconnect::CloseConnection,
171171
}
172172
},
173-
Err(e) => break Disconnect::PeerDisconnected,
173+
Err(_) => break Disconnect::PeerDisconnected,
174174
},
175175
}
176176
peer_manager.process_events();

0 commit comments

Comments
 (0)