From: Kostya Shishkov Date: Wed, 2 Mar 2022 17:31:00 +0000 (+0100) Subject: core/frame: drop unneeded mut X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=fafa7da322906def9ed7d924a51d50e39998fe61;p=nihav.git core/frame: drop unneeded mut --- 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 NAVideoBuffer { /// 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 = Vec::with_capacity(self.data.len()); data.clone_from(self.data.as_ref()); let mut offs: Vec = Vec::with_capacity(self.offs.len());