From 862ae14ae2a4f4fab11dcd511c523b19468c44a1 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Fri, 1 Jul 2022 16:13:21 +0200 Subject: [PATCH] protocols/rendezvous/src/client: Fix clippy warning let-unit-value (#2742) --- protocols/rendezvous/src/client.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/protocols/rendezvous/src/client.rs b/protocols/rendezvous/src/client.rs index 77ea2ae95d4..5ceb945a4f1 100644 --- a/protocols/rendezvous/src/client.rs +++ b/protocols/rendezvous/src/client.rs @@ -310,8 +310,7 @@ fn handle_outbound_event( expiring_registrations.extend(registrations.iter().cloned().map(|registration| { async move { // if the timer errors we consider it expired - let _ = futures_timer::Delay::new(Duration::from_secs(registration.ttl as u64)) - .await; + futures_timer::Delay::new(Duration::from_secs(registration.ttl as u64)).await; (registration.record.peer_id(), registration.namespace) }