aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-03-02 18:31:00 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-03-02 18:31:00 +0100
commitfafa7da322906def9ed7d924a51d50e39998fe61 (patch)
tree9e5485d1c6da4711c371b17af0e20afb2c50d67f
parentb53512389ece2e9e496ae2e99a1b2f2072931f1a (diff)
downloadnihav-fafa7da322906def9ed7d924a51d50e39998fe61.tar.gz
core/frame: drop unneeded mut
-rw-r--r--nihav-core/src/frame.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs
index 1ba3610..7a09be4 100644
--- a/nihav-core/src/frame.rs
+++ b/nihav-core/src/frame.rs
@@ -168,7 +168,7 @@ impl<T: Clone> NAVideoBuffer<T> {
/// Returns the number of components in picture format.
pub fn get_num_components(&self) -> usize { self.offs.len() }
/// Creates a copy of current `NAVideoBuffer`.
- pub fn copy_buffer(&mut self) -> Self {
+ pub fn copy_buffer(&self) -> Self {
let mut data: Vec<T> = Vec::with_capacity(self.data.len());
data.clone_from(self.data.as_ref());
let mut offs: Vec<usize> = Vec::with_capacity(self.offs.len());