Fix a couple of new clippy warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1129>
This commit is contained in:
Sebastian Dröge 2023-03-09 17:31:24 +02:00 committed by Guillaume Desmottes
parent 3a394e0118
commit adfa99946e
2 changed files with 6 additions and 10 deletions

View file

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

View file

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