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:
Rosemary Ajayi 2024-03-28 12:28:33 +01:00 committed by GitHub
parent 3ddb47e902
commit af358f51db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View file

@ -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);
}