diff options
author | Azhar Ismagulova <31756707+azharcodeit@users.noreply.github.com> | 2024-03-28 09:03:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 09:03:18 +0000 |
commit | f18317078601afad18188f1bad0a33e59ba8303c (patch) | |
tree | d89ed580167d13c1e3a09e9f2860a2ab8ea2db7e /components/script/dom/offlineaudiocontext.rs | |
parent | eccb60e548bf522c07546e3abfd55c9442181c6b (diff) | |
download | servo-f18317078601afad18188f1bad0a33e59ba8303c.tar.gz servo-f18317078601afad18188f1bad0a33e59ba8303c.zip |
clippy: Fix all errors in `components/script` (#31911)
* clippy: Fix errors in components/script/dom
* clippy: fixed remaining errors in components/script
Diffstat (limited to 'components/script/dom/offlineaudiocontext.rs')
-rw-r--r-- | components/script/dom/offlineaudiocontext.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/offlineaudiocontext.rs b/components/script/dom/offlineaudiocontext.rs index 88186bde5ee..072f19d80da 100644 --- a/components/script/dom/offlineaudiocontext.rs +++ b/components/script/dom/offlineaudiocontext.rs @@ -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 { |