diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-07-11 10:09:35 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-07-11 10:09:35 +0300 |
commit | bbd3d9ffe04081f0ac8d44374dd123fe301dd310 (patch) | |
tree | 50bfe943d8aa56440feb95e12226bfb09fbbc763 /text/json | |
parent | c2201480cfb31952017f2d69f10761b7e6ba0af1 (diff) |
Remove unnecessary `mut` everywhere
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1273>
Diffstat (limited to 'text/json')
-rw-r--r-- | text/json/src/jsongstparse/imp.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/text/json/src/jsongstparse/imp.rs b/text/json/src/jsongstparse/imp.rs index 0d48277b..2f6f9577 100644 --- a/text/json/src/jsongstparse/imp.rs +++ b/text/json/src/jsongstparse/imp.rs @@ -507,7 +507,7 @@ impl JsonGstParse { fn loop_fn(&self) { let mut state = self.state.lock().unwrap(); let State { ref mut pull, .. } = *state; - let mut pull = pull.as_mut().unwrap(); + let pull = pull.as_mut().unwrap(); let offset = pull.offset; let scan_duration = pull.duration.is_none(); @@ -519,7 +519,7 @@ impl JsonGstParse { match self.scan_duration() { Ok(pts) => { let mut state = self.state.lock().unwrap(); - let mut pull = state.pull.as_mut().unwrap(); + let pull = state.pull.as_mut().unwrap(); pull.duration = pts; } Err(err) => { @@ -596,7 +596,7 @@ impl JsonGstParse { self.handle_buffer(Some(buffer)) } - fn flush(&self, mut state: &mut State) { + fn flush(&self, state: &mut State) { state.reader.clear(); if let Some(pull) = &mut state.pull { pull.offset = 0; |