Fix a couple of new clippy warnings

This commit is contained in:
Sebastian Dröge 2023-03-09 17:31:24 +02:00
parent b025d068f2
commit d3b7928b99
2 changed files with 6 additions and 10 deletions

View file

@ -38,16 +38,14 @@ impl Default for Settings {
} }
} }
#[derive(Default)]
enum State { enum State {
#[default]
Stopped, Stopped,
Started { file: File, position: u64 }, Started { file: File, position: u64 },
} }
impl Default for State {
fn default() -> State {
State::Stopped
}
}
#[derive(Default)] #[derive(Default)]
pub struct FileSink { pub struct FileSink {

View file

@ -38,16 +38,14 @@ impl Default for Settings {
} }
} }
#[derive(Default)]
enum State { enum State {
#[default]
Stopped, Stopped,
Started { file: File, position: u64 }, Started { file: File, position: u64 },
} }
impl Default for State {
fn default() -> State {
State::Stopped
}
}
#[derive(Default)] #[derive(Default)]
pub struct FileSrc { pub struct FileSrc {