mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: fix some warnings in components/script (#31865)
This commit is contained in:
parent
58f170c97a
commit
188f3caff1
10 changed files with 16 additions and 16 deletions
|
@ -184,7 +184,7 @@ impl AnalyserNodeMethods for AnalyserNode {
|
|||
|
||||
/// <https://webaudio.github.io/web-audio-api/#dom-analysernode-fftsize>
|
||||
fn SetFftSize(&self, value: u32) -> Fallible<()> {
|
||||
if value > 32768 || value < 32 || (value & (value - 1) != 0) {
|
||||
if !(32..=32768).contains(&value) || (value & (value - 1) != 0) {
|
||||
return Err(Error::IndexSize);
|
||||
}
|
||||
self.engine.borrow_mut().set_fft_size(value as usize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue