run ./mach fmt and ./mach test-tidy

Signed-off-by: TG <ebiritg@gmail.com>
This commit is contained in:
TG 2025-05-22 02:58:13 +01:00
parent 948998342c
commit 712c7009db
4 changed files with 2 additions and 6 deletions

View file

@ -227,7 +227,6 @@ impl NavigatorMethods<crate::DomTypeHolder> for Navigator {
*self.global().is_online().lock().unwrap() *self.global().is_online().lock().unwrap()
} }
// https://html.spec.whatwg.org/multipage/#dom-navigator-plugins // https://html.spec.whatwg.org/multipage/#dom-navigator-plugins
fn Plugins(&self) -> DomRoot<PluginArray> { fn Plugins(&self) -> DomRoot<PluginArray> {
self.plugins self.plugins

View file

@ -399,7 +399,6 @@ pub(crate) struct Window {
/// <https://dom.spec.whatwg.org/#window-current-event> /// <https://dom.spec.whatwg.org/#window-current-event>
current_event: DomRefCell<Option<Dom<Event>>>, current_event: DomRefCell<Option<Dom<Event>>>,
/// Switch offline and online events /// Switch offline and online events
#[no_trace] #[no_trace]
#[ignore_malloc_size_of = "Arc<Mutex<bool>> does not implement MallocSizeOf"] #[ignore_malloc_size_of = "Arc<Mutex<bool>> does not implement MallocSizeOf"]
@ -3068,7 +3067,6 @@ impl Window {
inherited_secure_context, inherited_secure_context,
unminify_js, unminify_js,
is_online, is_online,
), ),
script_chan, script_chan,
layout: RefCell::new(layout), layout: RefCell::new(layout),

View file

@ -5,8 +5,8 @@
use std::cell::{RefCell, RefMut}; use std::cell::{RefCell, RefMut};
use std::default::Default; use std::default::Default;
use std::rc::Rc; use std::rc::Rc;
use std::sync::{Arc, Mutex};
use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::{Arc, Mutex};
use std::time::Duration; use std::time::Duration;
use base::cross_process_instant::CrossProcessInstant; use base::cross_process_instant::CrossProcessInstant;

View file

@ -19,7 +19,6 @@ use crate::dom::webgpu::gpu::GPU;
use crate::dom::workerglobalscope::WorkerGlobalScope; use crate::dom::workerglobalscope::WorkerGlobalScope;
use crate::script_runtime::{CanGc, JSContext}; use crate::script_runtime::{CanGc, JSContext};
// https://html.spec.whatwg.org/multipage/#workernavigator // https://html.spec.whatwg.org/multipage/#workernavigator
#[dom_struct] #[dom_struct]
pub(crate) struct WorkerNavigator { pub(crate) struct WorkerNavigator {
@ -108,7 +107,7 @@ impl WorkerNavigatorMethods<crate::DomTypeHolder> for WorkerNavigator {
/// <https://html.spec.whatwg.org/multipage/#dom-navigator-online> /// <https://html.spec.whatwg.org/multipage/#dom-navigator-online>
fn OnLine(&self) -> bool { fn OnLine(&self) -> bool {
*self.global().is_online().lock().unwrap() *self.global().is_online().lock().unwrap()
} }
// https://w3c.github.io/permissions/#navigator-and-workernavigator-extension // https://w3c.github.io/permissions/#navigator-and-workernavigator-extension