mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix collapsible_if warnings (#31852)
This commit is contained in:
parent
3d10dbae32
commit
a53632c0e5
11 changed files with 85 additions and 95 deletions
|
@ -117,13 +117,11 @@ impl NavigationPreloadManagerMethods for NavigationPreloadManager {
|
|||
let mut state = NavigationPreloadState::empty();
|
||||
|
||||
// 3.
|
||||
if self.serviceworker_registration.is_active() {
|
||||
if self
|
||||
.serviceworker_registration
|
||||
if self.serviceworker_registration.is_active() &&
|
||||
self.serviceworker_registration
|
||||
.get_navigation_preload_enabled()
|
||||
{
|
||||
state.enabled = true;
|
||||
}
|
||||
{
|
||||
state.enabled = true;
|
||||
}
|
||||
|
||||
// 4.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue