From 5a1246553f41b54a016d995eb2801f87c9cbd109 Mon Sep 17 00:00:00 2001 From: Josh Holmer Date: Sun, 5 May 2024 21:32:49 -0400 Subject: [PATCH] Fix minor clippy lints --- src/util/channel_layout/iter.rs | 6 ++++++ src/util/channel_layout/mask.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/util/channel_layout/iter.rs b/src/util/channel_layout/iter.rs index ac4acf2..fc24cb5 100644 --- a/src/util/channel_layout/iter.rs +++ b/src/util/channel_layout/iter.rs @@ -15,6 +15,12 @@ impl ChannelLayoutIter { } } +impl Default for ChannelLayoutIter { + fn default() -> Self { + Self::new() + } +} + impl Iterator for ChannelLayoutIter { type Item = ChannelLayout<'static>; diff --git a/src/util/channel_layout/mask.rs b/src/util/channel_layout/mask.rs index 78c5702..d845c42 100644 --- a/src/util/channel_layout/mask.rs +++ b/src/util/channel_layout/mask.rs @@ -2,7 +2,7 @@ use crate::ffi::*; use libc::c_ulonglong; bitflags! { - #[derive(Eq, PartialEq, Copy, Clone)] + #[derive(Eq, PartialEq, Copy, Clone, Debug)] pub struct ChannelLayoutMask: c_ulonglong { const FRONT_LEFT = AV_CH_FRONT_LEFT; const FRONT_RIGHT = AV_CH_FRONT_RIGHT;