Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/text/json
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2021-11-30 17:31:50 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-11-30 17:31:50 +0300
commitc46901d150b91f2d0a59f4484945389660d65ef8 (patch)
treefe315da71825c4c5084f0d56a7deae9453a05a17 /text/json
parentf02322bd806f2690becb9c4919be59e0e95e5b3a (diff)
Fix or silence various new 1.57 clippy warnings
Diffstat (limited to 'text/json')
-rw-r--r--text/json/src/jsongstenc/imp.rs16
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,