diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-06-28 14:52:20 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-06-28 14:52:20 +0300 |
commit | cb842064572262d3e477416abf4fe09bb50d4a7c (patch) | |
tree | 0b58190a6168d84e71537dc7ec790781f4ef82f2 /generic/threadshare/src/udpsink | |
parent | 5c00db62b785d5455848b2780acd319be64e120b (diff) |
Fix a couple of new 1.62 clippy warnings
Diffstat (limited to 'generic/threadshare/src/udpsink')
-rw-r--r-- | generic/threadshare/src/udpsink/imp.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/generic/threadshare/src/udpsink/imp.rs b/generic/threadshare/src/udpsink/imp.rs index 287f2570f..1dd8935b5 100644 --- a/generic/threadshare/src/udpsink/imp.rs +++ b/generic/threadshare/src/udpsink/imp.rs @@ -530,9 +530,7 @@ impl UdpSinkPadHandler { let now = element.current_running_time(); match running_time.into().opt_checked_sub(now) { - Ok(Some(delay)) => { - let _ = runtime::time::delay_for(delay.into()).await; - } + Ok(Some(delay)) => runtime::time::delay_for(delay.into()).await, _ => runtime::executor::yield_now().await, } } |