diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-11-30 17:31:50 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-11-30 17:31:50 +0300 |
commit | c46901d150b91f2d0a59f4484945389660d65ef8 (patch) | |
tree | fe315da71825c4c5084f0d56a7deae9453a05a17 /text/json | |
parent | f02322bd806f2690becb9c4919be59e0e95e5b3a (diff) |
Fix or silence various new 1.57 clippy warnings
Diffstat (limited to 'text/json')
-rw-r--r-- | text/json/src/jsongstenc/imp.rs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/text/json/src/jsongstenc/imp.rs b/text/json/src/jsongstenc/imp.rs index 9a5bc059c..6b5a384db 100644 --- a/text/json/src/jsongstenc/imp.rs +++ b/text/json/src/jsongstenc/imp.rs @@ -47,25 +47,11 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { ) }); -#[derive(Debug)] +#[derive(Debug, Default)] struct State { - start_ts: Option<gst::ClockTime>, - end_ts: Option<gst::ClockTime>, - current_line: String, format: Option<String>, } -impl Default for State { - fn default() -> Self { - Self { - start_ts: None, - end_ts: None, - current_line: "".to_string(), - format: None, - } - } -} - pub struct JsonGstEnc { srcpad: gst::Pad, sinkpad: gst::Pad, |