mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix all errors in components/script
(#31911)
* clippy: Fix errors in components/script/dom * clippy: fixed remaining errors in components/script
This commit is contained in:
parent
eccb60e548
commit
f183170786
8 changed files with 57 additions and 57 deletions
|
@ -404,9 +404,9 @@ impl BaseAudioContextMethods for BaseAudioContext {
|
|||
length: u32,
|
||||
sample_rate: Finite<f32>,
|
||||
) -> Fallible<DomRoot<AudioBuffer>> {
|
||||
if number_of_channels <= 0 ||
|
||||
if number_of_channels == 0 ||
|
||||
number_of_channels > MAX_CHANNEL_COUNT ||
|
||||
length <= 0 ||
|
||||
length == 0 ||
|
||||
*sample_rate <= 0.
|
||||
{
|
||||
return Err(Error::NotSupported);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue