webrtchttp: Remove unnecessary clippy warning override

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1008>
This commit is contained in:
Sebastian Dröge 2022-12-12 14:31:33 +02:00
parent b6c9c14ccf
commit 7b1ee9f948
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 // With tokio's spawn one does not have to .await the
// returned JoinHandle to make the provided future start // returned JoinHandle to make the provided future start
// execution. It will start running in the background // execution. It will start running in the background
// immediately when spawn is called. So silence the clippy // immediately when spawn is called.
// warning. RUNTIME.spawn(async move {
#[allow(clippy::let_underscore_future)]
let _ = RUNTIME.spawn(async move {
/* Note that we check for a valid WHEP endpoint in change_state */ /* Note that we check for a valid WHEP endpoint in change_state */
self_ref.whep_offer().await 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 // With tokio's spawn one does not have to .await the
// returned JoinHandle to make the provided future start // returned JoinHandle to make the provided future start
// execution. It will start running in the background // execution. It will start running in the background
// immediately when spawn is called. So silence the clippy // immediately when spawn is called.
// warning. RUNTIME.spawn(async move {
#[allow(clippy::let_underscore_future)]
let _ = RUNTIME.spawn(async move {
/* Note that we check for a valid WHIP endpoint in change_state */ /* Note that we check for a valid WHIP endpoint in change_state */
self_ref.send_offer().await self_ref.send_offer().await
}); });