webrtchttp: Remove unnecessary clippy warning override

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1009>
This commit is contained in:
Sebastian Dröge 2022-12-12 14:31:33 +02:00
parent 65efdc8c81
commit 289e8a08c3
2 changed files with 4 additions and 8 deletions

View file

@ -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
});

View file

@ -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
});