diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-10-11 13:49:10 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2018-10-11 13:49:10 +0300 |
commit | f2deb2264bd87e5343a3aeaa33775ffc23f9ee57 (patch) | |
tree | a75760c14630088cbb4aeb570897b85601bd5858 /gst-plugin-audiofx/src/audioecho.rs | |
parent | 162311d2f1bbe2dfe5272ace0f5622877f6878b7 (diff) |
Fix various clippy warnings
Diffstat (limited to 'gst-plugin-audiofx/src/audioecho.rs')
-rw-r--r-- | gst-plugin-audiofx/src/audioecho.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gst-plugin-audiofx/src/audioecho.rs b/gst-plugin-audiofx/src/audioecho.rs index eabfe9fc0..9cc0e41aa 100644 --- a/gst-plugin-audiofx/src/audioecho.rs +++ b/gst-plugin-audiofx/src/audioecho.rs @@ -274,7 +274,7 @@ impl BaseTransformImpl<BaseTransform> for AudioEcho { let buffer_size = size * (info.channels() as u64); *self.state.lock().unwrap() = Some(State { - info: info, + info, buffer: RingBuffer::new(buffer_size as usize), }); @@ -353,10 +353,10 @@ impl<'a> RingBufferIter<'a> { let buffer = &mut buffer.buffer; RingBufferIter { - buffer: buffer, - buffer_pos: buffer_pos, - read_pos: read_pos, - write_pos: write_pos, + buffer, + buffer_pos, + read_pos, + write_pos, } } } |