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
|
@ -79,8 +79,8 @@ impl OfflineAudioContext {
|
|||
sample_rate: f32,
|
||||
) -> Fallible<DomRoot<OfflineAudioContext>> {
|
||||
if channel_count > MAX_CHANNEL_COUNT ||
|
||||
channel_count <= 0 ||
|
||||
length <= 0 ||
|
||||
channel_count == 0 ||
|
||||
length == 0 ||
|
||||
sample_rate < MIN_SAMPLE_RATE ||
|
||||
sample_rate > MAX_SAMPLE_RATE
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue