From 0f0239e16471c814b5c0a801d8b050ddf9f892b5 Mon Sep 17 00:00:00 2001 From: teor Date: Mon, 19 Jun 2023 08:45:17 +1000 Subject: [PATCH] Delete redundant `move` in closures --- zebra-network/src/peer_set/initialize.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zebra-network/src/peer_set/initialize.rs b/zebra-network/src/peer_set/initialize.rs index f3512764a12..be267927e72 100644 --- a/zebra-network/src/peer_set/initialize.rs +++ b/zebra-network/src/peer_set/initialize.rs @@ -614,7 +614,7 @@ where peerset_tx.clone(), ) .await? - .map(move |res| match res { + .map(|res| match res { Ok(()) => (), Err(e @ JoinError { .. }) => { if e.is_panic() { @@ -632,7 +632,7 @@ where HANDSHAKE_TIMEOUT + Duration::from_millis(500), handshake_task, ) - .map(move |res| match res { + .map(|res| match res { Ok(()) => (), Err(_e @ Elapsed { .. }) => { info!( @@ -925,7 +925,7 @@ where Ok(DemandCrawlFinished) } }) - .map(move |res| match res { + .map(|res| match res { Ok(crawler_action) => crawler_action, Err(e @ JoinError {..}) => { if e.is_panic() {