mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-26 12:00:32 +00:00
clippy pass
This commit is contained in:
parent
e573f0ba16
commit
c81213b83c
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue