From 7b1ee9f948a1d03e58d9d38dddd506cf1bd26faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 12 Dec 2022 14:31:33 +0200 Subject: [PATCH] webrtchttp: Remove unnecessary clippy warning override Part-of: --- net/webrtchttp/src/whepsrc/imp.rs | 6 ++---- net/webrtchttp/src/whipsink/imp.rs | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/net/webrtchttp/src/whepsrc/imp.rs b/net/webrtchttp/src/whepsrc/imp.rs index 74e8ee75..29d5f2d5 100644 --- a/net/webrtchttp/src/whepsrc/imp.rs +++ b/net/webrtchttp/src/whepsrc/imp.rs @@ -445,10 +445,8 @@ impl WhepSrc { // With tokio's spawn one does not have to .await the // returned JoinHandle to make the provided future start // execution. It will start running in the background - // immediately when spawn is called. So silence the clippy - // warning. - #[allow(clippy::let_underscore_future)] - let _ = RUNTIME.spawn(async move { + // immediately when spawn is called. + RUNTIME.spawn(async move { /* Note that we check for a valid WHEP endpoint in change_state */ self_ref.whep_offer().await }); diff --git a/net/webrtchttp/src/whipsink/imp.rs b/net/webrtchttp/src/whipsink/imp.rs index 9739e92c..237e2132 100644 --- a/net/webrtchttp/src/whipsink/imp.rs +++ b/net/webrtchttp/src/whipsink/imp.rs @@ -366,10 +366,8 @@ impl ObjectImpl for WhipSink { // With tokio's spawn one does not have to .await the // returned JoinHandle to make the provided future start // execution. It will start running in the background - // immediately when spawn is called. So silence the clippy - // warning. - #[allow(clippy::let_underscore_future)] - let _ = RUNTIME.spawn(async move { + // immediately when spawn is called. + RUNTIME.spawn(async move { /* Note that we check for a valid WHIP endpoint in change_state */ self_ref.send_offer().await });