Merge pull request #280 from mitchmindtree/deref_panic
Remove unnecessary panic! from OutputBuffer Deref impl
This commit is contained in:
commit
755eefedff
|
@ -602,7 +602,7 @@ impl<'a, T> Deref for OutputBuffer<'a, T>
|
|||
|
||||
#[inline]
|
||||
fn deref(&self) -> &[T] {
|
||||
panic!("It is forbidden to read from the audio buffer");
|
||||
self.buffer
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue