Cleaning up lint

This commit is contained in:
Ryan Summers 2021-07-26 13:52:57 +02:00
parent 1c66310b6d
commit 7a4f73d558
1 changed files with 3 additions and 8 deletions

View File

@ -139,6 +139,7 @@ pub fn setup_streaming(
(generator, stream) (generator, stream)
} }
#[derive(Debug)]
struct StreamFrame { struct StreamFrame {
buffer: Box<[u8; FRAME_SIZE], Init>, buffer: Box<[u8; FRAME_SIZE], Init>,
offset: usize, offset: usize,
@ -249,15 +250,9 @@ impl FrameGenerator {
current_frame.add_batch::<_, T>(f); current_frame.add_batch::<_, T>(f);
if current_frame.is_full::<T>() { if current_frame.is_full::<T>() {
if self self.queue
.queue
.enqueue(self.current_frame.take().unwrap()) .enqueue(self.current_frame.take().unwrap())
.is_err() .unwrap();
{
// Given that the queue is the same size as the number of frames available, this
// should never occur.
panic!("Frame enqueue failure")
}
} }
} }
} }