Fix clippy warning

This commit is contained in:
Franck Royer 2020-12-22 13:50:28 +11:00
parent 49b84d84b9
commit df237f82cf
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -200,8 +200,8 @@ impl EventLoop {
OutEvent::Message3 => info!("Alice acknowledged message 3 received"),
}
},
null = self.dial_alice.next().fuse() => {
if let Some(_) = null {
option = self.dial_alice.next().fuse() => {
if option.is_some() {
let peer_id = self.alice_peer_id.clone();
if self.swarm.pt.is_connected(&peer_id) {
debug!("Already connected to Alice: {}", peer_id);