mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: fixed some warnings in components/script (#31888)
This commit is contained in:
parent
8dece05980
commit
92b557867c
11 changed files with 39 additions and 40 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue