diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2023-09-11 21:16:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 19:16:54 +0000 |
commit | aad2dccc9c9f6b89922c07933cfa7087a8cd1ec4 (patch) | |
tree | 68dec1a9d53f4ed564843a9580fba70bf90dbef1 /components/layout/layout_debug.rs | |
parent | 413da4ca69d3013528c09bbaf38629a72384372d (diff) | |
download | servo-aad2dccc9c9f6b89922c07933cfa7087a8cd1ec4.tar.gz servo-aad2dccc9c9f6b89922c07933cfa7087a8cd1ec4.zip |
Strict import formatting (grouping and granularity) (#30325)
* strict imports formatting
* Reformat all imports
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r-- | components/layout/layout_debug.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/components/layout/layout_debug.rs b/components/layout/layout_debug.rs index 2753ef84922..00a451b81b5 100644 --- a/components/layout/layout_debug.rs +++ b/components/layout/layout_debug.rs @@ -5,10 +5,6 @@ //! Supports writing a trace file created during each layout scope //! that can be viewed by an external tool to make layout debugging easier. -use crate::flow::GetBaseFlow; -use crate::flow_ref::FlowRef; -use serde::Serialize; -use serde_json::{to_string, to_value, Value}; use std::borrow::ToOwned; use std::cell::RefCell; use std::fs::File; @@ -16,6 +12,12 @@ use std::io::Write; #[cfg(debug_assertions)] use std::sync::atomic::{AtomicUsize, Ordering}; +use serde::Serialize; +use serde_json::{to_string, to_value, Value}; + +use crate::flow::GetBaseFlow; +use crate::flow_ref::FlowRef; + thread_local!(static STATE_KEY: RefCell<Option<State>> = RefCell::new(None)); #[cfg(debug_assertions)] |