From b14dd011268ab4fed6b7b962c7214947397209e5 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 14 Jun 2017 12:21:20 +0300 Subject: [PATCH] frame/audio: fix return type of frame::Audio::plane_mut() --- src/util/frame/audio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/frame/audio.rs b/src/util/frame/audio.rs index 9b2833c..b7aad61 100644 --- a/src/util/frame/audio.rs +++ b/src/util/frame/audio.rs @@ -163,7 +163,7 @@ impl Audio { } #[inline] - pub fn plane_mut(&mut self, index: usize) -> &[T] { + pub fn plane_mut(&mut self, index: usize) -> &mut [T] { if index >= self.planes() { panic!("out of bounds"); }