diff options
author | François Laignel <fengalin@free.fr> | 2021-04-12 20:22:13 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-04-13 18:24:20 +0300 |
commit | c81213b83cf795865ba39338dfc31f0c9e3195b3 (patch) | |
tree | 2f9ae3d297a51a1606b0fa586172f77cb5ffc5c3 /generic | |
parent | e573f0ba166541f113a972801608e10ca160ec04 (diff) |
clippy pass
Diffstat (limited to 'generic')
-rw-r--r-- | generic/threadshare/src/proxy/imp.rs | 8 | ||||
-rw-r--r-- | generic/threadshare/src/queue/imp.rs | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/generic/threadshare/src/proxy/imp.rs b/generic/threadshare/src/proxy/imp.rs index 6c73f7522..32a159cbd 100644 --- a/generic/threadshare/src/proxy/imp.rs +++ b/generic/threadshare/src/proxy/imp.rs @@ -455,10 +455,10 @@ impl ProxySink { let pending_queue = shared_ctx.pending_queue.as_mut().unwrap(); - let schedule_now = match item { - DataQueueItem::Event(ref ev) if ev.type_() != gst::EventType::Eos => false, - _ => true, - }; + let schedule_now = !matches!( + item, + DataQueueItem::Event(ref ev) if ev.type_() != gst::EventType::Eos, + ); pending_queue.items.push_back(item); diff --git a/generic/threadshare/src/queue/imp.rs b/generic/threadshare/src/queue/imp.rs index e11f67bac..86157d58c 100644 --- a/generic/threadshare/src/queue/imp.rs +++ b/generic/threadshare/src/queue/imp.rs @@ -572,10 +572,10 @@ impl Queue { }); } - let schedule_now = match item { - DataQueueItem::Event(ref ev) if ev.type_() != gst::EventType::Eos => false, - _ => true, - }; + let schedule_now = !matches!( + item, + DataQueueItem::Event(ref ev) if ev.type_() != gst::EventType::Eos, + ); pending_queue.as_mut().unwrap().items.push_back(item); |