Fix minor clippy lints

This commit is contained in:
Josh Holmer 2024-05-05 21:32:49 -04:00
parent 6b0e648959
commit 5a1246553f
2 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,12 @@ impl ChannelLayoutIter {
} }
} }
impl Default for ChannelLayoutIter {
fn default() -> Self {
Self::new()
}
}
impl Iterator for ChannelLayoutIter { impl Iterator for ChannelLayoutIter {
type Item = ChannelLayout<'static>; type Item = ChannelLayout<'static>;

View File

@ -2,7 +2,7 @@ use crate::ffi::*;
use libc::c_ulonglong; use libc::c_ulonglong;
bitflags! { bitflags! {
#[derive(Eq, PartialEq, Copy, Clone)] #[derive(Eq, PartialEq, Copy, Clone, Debug)]
pub struct ChannelLayoutMask: c_ulonglong { pub struct ChannelLayoutMask: c_ulonglong {
const FRONT_LEFT = AV_CH_FRONT_LEFT; const FRONT_LEFT = AV_CH_FRONT_LEFT;
const FRONT_RIGHT = AV_CH_FRONT_RIGHT; const FRONT_RIGHT = AV_CH_FRONT_RIGHT;