mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fixed some clippy warnings by replacing 'match' with 'if' (#32007)
This commit is contained in:
parent
05f1bbf0a9
commit
e0e3408650
5 changed files with 57 additions and 71 deletions
|
@ -288,10 +288,9 @@ impl FetchResponseListener for FetchContext {
|
|||
|
||||
fn submit_resource_timing(&mut self) {
|
||||
// navigation submission is handled in servoparser/mod.rs
|
||||
match self.resource_timing.timing_type {
|
||||
ResourceTimingType::Resource => network_listener::submit_timing(self),
|
||||
_ => {},
|
||||
};
|
||||
if self.resource_timing.timing_type == ResourceTimingType::Resource {
|
||||
network_listener::submit_timing(self)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue