Merge pull request #280 from mitchmindtree/deref_panic

Remove unnecessary panic! from OutputBuffer Deref impl
This commit is contained in:
mitchmindtree 2019-06-08 00:13:53 +02:00 committed by GitHub
commit 755eefedff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}
}