mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-22 17:08:18 +00:00
Fix a couple of new clippy warnings
This commit is contained in:
parent
b025d068f2
commit
d3b7928b99
2 changed files with 6 additions and 10 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue