mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
clippy: Fix another batch of clippy warnings in components/scripts
(#31912)
* boolean can be simplified * boolean can be simplified * boolean can be simplified
This commit is contained in:
parent
3ddb47e902
commit
af358f51db
2 changed files with 10 additions and 10 deletions
|
@ -141,7 +141,7 @@ impl MediaSessionMethods for MediaSession {
|
|||
|
||||
/// <https://w3c.github.io/mediasession/#dom-mediasession-metadata>
|
||||
fn SetMetadata(&self, metadata: Option<&MediaMetadata>) {
|
||||
if let Some(ref metadata) = metadata {
|
||||
if let Some(metadata) = metadata {
|
||||
metadata.set_session(self);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue