mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -114,8 +114,8 @@ impl AudioBuffer {
|
|||
proto: Option<HandleObject>,
|
||||
options: &AudioBufferOptions,
|
||||
) -> Fallible<DomRoot<AudioBuffer>> {
|
||||
if options.length <= 0 ||
|
||||
options.numberOfChannels <= 0 ||
|
||||
if options.length == 0 ||
|
||||
options.numberOfChannels == 0 ||
|
||||
options.numberOfChannels > MAX_CHANNEL_COUNT ||
|
||||
*options.sampleRate < MIN_SAMPLE_RATE ||
|
||||
*options.sampleRate > MAX_SAMPLE_RATE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue