mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix single_match warnings (#31876)
This commit is contained in:
parent
d16f259e1d
commit
b71de92569
7 changed files with 115 additions and 133 deletions
|
@ -354,11 +354,10 @@ impl AudioNodeMethods for AudioNode {
|
|||
return Ok(());
|
||||
}
|
||||
|
||||
match self.upcast::<EventTarget>().type_id() {
|
||||
EventTargetTypeId::AudioNode(AudioNodeTypeId::ChannelSplitterNode) => {
|
||||
return Err(Error::InvalidState);
|
||||
},
|
||||
_ => (),
|
||||
if let EventTargetTypeId::AudioNode(AudioNodeTypeId::ChannelSplitterNode) =
|
||||
self.upcast::<EventTarget>().type_id()
|
||||
{
|
||||
return Err(Error::InvalidState);
|
||||
};
|
||||
|
||||
self.channel_interpretation.set(value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue