mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
fixed various clippy warnings (#31954)
This commit is contained in:
parent
c3360df918
commit
bd287df0d4
6 changed files with 6 additions and 6 deletions
|
@ -258,7 +258,7 @@ impl AudioNodeMethods for AudioNode {
|
|||
EventTargetTypeId::AudioNode(AudioNodeTypeId::AudioDestinationNode) => {
|
||||
if self.context.is_offline() {
|
||||
return Err(Error::InvalidState);
|
||||
} else if value < 1 || value > MAX_CHANNEL_COUNT {
|
||||
} else if !(1..=MAX_CHANNEL_COUNT).contains(&value) {
|
||||
return Err(Error::IndexSize);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue