clippy: fixed some warnings in components/script (#31888)

This commit is contained in:
Ekta Siwach 2024-03-27 02:55:42 +05:30 committed by GitHub
parent 8dece05980
commit 92b557867c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 39 additions and 40 deletions

View file

@ -164,10 +164,9 @@ impl DocumentLoader {
}
pub fn is_only_blocked_by_iframes(&self) -> bool {
self.blocking_loads.iter().all(|load| match *load {
LoadType::Subframe(_) => true,
_ => false,
})
self.blocking_loads
.iter()
.all(|load| matches!(*load, LoadType::Subframe(_)))
}
pub fn inhibit_events(&mut self) {