diff options
author | Simon Wülker <simon.wuelker@arcor.de> | 2025-03-03 12:26:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-03 11:26:53 +0000 |
commit | 3d320fa96ae2ca95a720c454c47ee7827864c5af (patch) | |
tree | 1b7718d574cb9164d924b7571760d90d6d2099c4 /components/script/script_thread.rs | |
parent | 6300e820b4e3fbfcec260048f931528d4998d5e4 (diff) | |
download | servo-3d320fa96ae2ca95a720c454c47ee7827864c5af.tar.gz servo-3d320fa96ae2ca95a720c454c47ee7827864c5af.zip |
Update rustfmt to the 2024 style edition (#35764)
* Use 2024 style edition
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Reformat all code
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
---------
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index e39518b0262..66889f94ad3 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -24,8 +24,8 @@ use std::default::Default; use std::option::Option; use std::rc::Rc; use std::result::Result; -use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; +use std::sync::atomic::{AtomicBool, Ordering}; use std::thread; use std::time::{Duration, Instant, SystemTime}; @@ -33,11 +33,11 @@ use background_hang_monitor_api::{ BackgroundHangMonitor, BackgroundHangMonitorExitSignal, HangAnnotation, MonitoredComponentId, MonitoredComponentType, }; +use base::Epoch; use base::cross_process_instant::CrossProcessInstant; use base::id::{ BrowsingContextId, HistoryStateId, PipelineId, PipelineNamespace, TopLevelBrowsingContextId, }; -use base::Epoch; use canvas_traits::webgl::WebGLPipeline; use chrono::{DateTime, Local}; use crossbeam_channel::unbounded; @@ -57,12 +57,12 @@ use ipc_channel::ipc; use ipc_channel::router::ROUTER; use js::glue::GetWindowProxyClass; use js::jsapi::{ - JSContext as UnsafeJSContext, JSTracer, JS_AddInterruptCallback, SetWindowProxyClass, + JS_AddInterruptCallback, JSContext as UnsafeJSContext, JSTracer, SetWindowProxyClass, }; use js::jsval::UndefinedValue; use js::rust::ParentRuntime; use media::WindowGLContext; -use metrics::{PaintTimeMetrics, MAX_TASK_NS}; +use metrics::{MAX_TASK_NS, PaintTimeMetrics}; use mime::{self, Mime}; use net_traits::image_cache::{ImageCache, PendingImageResponse}; use net_traits::request::{Referrer, RequestId}; @@ -77,7 +77,7 @@ use profile_traits::mem::ReportsChan; use profile_traits::time::ProfilerCategory; use profile_traits::time_profile; use script_layout_interface::{ - node_id_from_scroll_id, LayoutConfig, LayoutFactory, ReflowGoal, ScriptThreadFactory, + LayoutConfig, LayoutFactory, ReflowGoal, ScriptThreadFactory, node_id_from_scroll_id, }; use script_traits::{ ConstellationInputEvent, DiscardBrowsingContext, DocumentActivity, InitialScriptState, @@ -2726,11 +2726,13 @@ impl ScriptThread { let document = self.documents.borrow_mut().remove(id); if let Some(document) = document { // We should never have a pipeline that's still an incomplete load, but also has a Document. - debug_assert!(!self - .incomplete_loads - .borrow() - .iter() - .any(|load| load.pipeline_id == id)); + debug_assert!( + !self + .incomplete_loads + .borrow() + .iter() + .any(|load| load.pipeline_id == id) + ); if let Some(parser) = document.get_current_parser() { parser.abort(can_gc); |