clippy pass

This commit is contained in:
François Laignel 2021-04-12 19:22:13 +02:00
parent e573f0ba16
commit c81213b83c
2 changed files with 8 additions and 8 deletions

View file

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

View file

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