From e78ba12dfeaf0c8dc6a9faa04734807204ec07dc Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Fri, 11 Dec 2020 20:20:47 +0700 Subject: [PATCH] Some improvements of peers_exchange. --- mm2src/mm2_libp2p/src/peers_exchange.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm2src/mm2_libp2p/src/peers_exchange.rs b/mm2src/mm2_libp2p/src/peers_exchange.rs index fa4a37a3fe..af22d37227 100644 --- a/mm2src/mm2_libp2p/src/peers_exchange.rs +++ b/mm2src/mm2_libp2p/src/peers_exchange.rs @@ -217,7 +217,7 @@ impl PeersExchange { None => return false, } - if let Some(_) = components.next() { + if components.next().is_some() { return false; } true