Skip to content

Commit

Permalink
Remove try/unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Dec 4, 2023
1 parent 9d5f3d1 commit 066bf62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ impl BufferManager {

log_scale * SCALE
})
.collect::<Box<_>>()
.try_into().unwrap())
.collect::<Box<_>>())
}

pub fn fill_buffer(&mut self, buffer: &[f32], rate: u32) {
Expand Down

0 comments on commit 066bf62

Please sign in to comment.