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-02-09 19:57:34 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-02-09 19:57:34 +0300
commitcbda137fbf128be6eb39b8eff5c996494476cefb (patch)
treefee6c0f8838f2dc9d2ad3cb6dfb33255285b2b05 /text/json
parentf63c4284c1f8661eae0df31bc949793bbf7a2c43 (diff)
Fix various warnings from clippy 1.50
Diffstat (limited to 'text/json')
-rw-r--r--text/json/src/jsongstparse/imp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/text/json/src/jsongstparse/imp.rs b/text/json/src/jsongstparse/imp.rs
index 8b51edc32..440483d2f 100644
--- a/text/json/src/jsongstparse/imp.rs
+++ b/text/json/src/jsongstparse/imp.rs
@@ -300,7 +300,7 @@ impl JsonGstParse {
state = self.state.lock().unwrap();
} else {
- state = self.handle_skipped_line(element, pts, state)?;
+ state = self.handle_skipped_line(element, pts, state);
}
}
Ok(Some(Line::Header { format })) => {
@@ -343,7 +343,7 @@ impl JsonGstParse {
element: &super::JsonGstParse,
pts: gst::ClockTime,
mut state: MutexGuard<State>,
- ) -> Result<MutexGuard<State>, gst::FlowError> {
+ ) -> MutexGuard<State> {
if pts >= state.segment.get_start() {
state.seeking = false;
state.discont = true;
@@ -355,7 +355,7 @@ impl JsonGstParse {
drop(state);
- Ok(self.state.lock().unwrap())
+ self.state.lock().unwrap()
}
fn sink_activate(