mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
util/sample_format: use lifetime elision
This commit is contained in:
@@ -149,7 +149,7 @@ impl Buffer {
|
||||
impl Index<usize> for Buffer {
|
||||
type Output = [u8];
|
||||
|
||||
fn index<'a>(&'a self, index: usize) -> &'a [u8] {
|
||||
fn index(&self, index: usize) -> &[u8] {
|
||||
if index >= self.samples {
|
||||
panic!("out of bounds");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user