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:
parent
d0cafd68bf
commit
960b1d5a40
|
@ -602,7 +602,7 @@ impl<'a, T> Deref for OutputBuffer<'a, T>
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn deref(&self) -> &[T] {
|
fn deref(&self) -> &[T] {
|
||||||
panic!("It is forbidden to read from the audio buffer");
|
self.buffer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue