Remove unnecessary panic! from OutputBuffer Deref impl

Since #269 this `panic!` is certainly unnecessary as `InputBuffer` and
`OutputBuffer` are a thin wrapper around a slice. That said, I'm
struggling to understand exactly why this `panic!` was necessary in the
first place.

This closes #228.
This commit is contained in:
mitchmindtree 2019-06-07 21:05:14 +02:00
parent d0cafd68bf
commit 960b1d5a40
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}