Skip to content

Commit

Permalink
Clippy false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed Oct 14, 2024
1 parent b5e80f4 commit 25d5752
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stream/speex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ impl ResamplerState {
}
}

// FIXME `mem::size_of` seemingly false positive for lint
#[allow(unused_qualifications)]
pub(super) fn update_filter(&mut self, num: u32, den: u32) {
let old_length = self.filt_len;
let old_alloc_size = self.mem_alloc_size as usize;
Expand All @@ -320,7 +322,7 @@ impl ResamplerState {

let use_direct = self.filt_len * den
<= self.filt_len * self.oversample + 8
&& 2147483647_u64 / size_of::<f32>() as u64 / den as u64
&& 2147483647_u64 / mem::size_of::<f32>() as u64 / den as u64
>= self.filt_len as u64;

let min_sinc_table_length = if !use_direct {
Expand Down

0 comments on commit 25d5752

Please sign in to comment.