diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-11-16 13:15:59 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2020-11-19 18:31:50 +0300 |
commit | df6a229f58cd83591ed1702bd95199436644d22e (patch) | |
tree | f4e3933f996859f26a22d8b9a438d7ea00902c48 /utils | |
parent | d921ee2245b5d39342e932db283bced7462497ce (diff) |
Fix or silence various clippy warnings
Diffstat (limited to 'utils')
-rw-r--r-- | utils/togglerecord/src/togglerecord/imp.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/utils/togglerecord/src/togglerecord/imp.rs b/utils/togglerecord/src/togglerecord/imp.rs index fa0cdcfbf..8162ba41b 100644 --- a/utils/togglerecord/src/togglerecord/imp.rs +++ b/utils/togglerecord/src/togglerecord/imp.rs @@ -1382,10 +1382,7 @@ impl ToggleRecord { gst_log!(CAT, obj: pad, "Handling event {:?}", event); - let forward = match event.view() { - EventView::Seek(..) => false, - _ => true, - }; + let forward = !matches!(event.view(), EventView::Seek(..)); let rec_state = self.state.lock(); let running_time_offset = rec_state.running_time_offset.unwrap_or(0) as i64; |