Skip to content

Commit

Permalink
Delete redundant move in closures
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Jun 18, 2023
1 parent d356b5e commit 0f0239e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zebra-network/src/peer_set/initialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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!(
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 0f0239e

Please sign in to comment.