mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Strict import formatting (grouping and granularity) (#30325)
* strict imports formatting * Reformat all imports
This commit is contained in:
parent
413da4ca69
commit
aad2dccc9c
802 changed files with 6861 additions and 6395 deletions
|
@ -22,14 +22,6 @@
|
|||
//! its hash table during the next GC. During GC, the entries of the hash table are counted
|
||||
//! as JS roots.
|
||||
|
||||
use crate::dom::bindings::conversions::ToJSValConvertible;
|
||||
use crate::dom::bindings::error::Error;
|
||||
use crate::dom::bindings::reflector::{DomObject, Reflector};
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::trace::trace_reflector;
|
||||
use crate::dom::promise::Promise;
|
||||
use crate::task::TaskOnce;
|
||||
use js::jsapi::JSTracer;
|
||||
use std::cell::RefCell;
|
||||
use std::collections::hash_map::Entry::{Occupied, Vacant};
|
||||
use std::collections::hash_map::HashMap;
|
||||
|
@ -38,12 +30,23 @@ use std::marker::PhantomData;
|
|||
use std::rc::Rc;
|
||||
use std::sync::{Arc, Weak};
|
||||
|
||||
use js::jsapi::JSTracer;
|
||||
|
||||
use crate::dom::bindings::conversions::ToJSValConvertible;
|
||||
use crate::dom::bindings::error::Error;
|
||||
use crate::dom::bindings::reflector::{DomObject, Reflector};
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::trace::trace_reflector;
|
||||
use crate::dom::promise::Promise;
|
||||
use crate::task::TaskOnce;
|
||||
|
||||
#[allow(missing_docs)] // FIXME
|
||||
mod dummy {
|
||||
// Attributes don’t apply through the macro.
|
||||
use super::LiveDOMReferences;
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
|
||||
use super::LiveDOMReferences;
|
||||
thread_local!(pub static LIVE_REFERENCES: Rc<RefCell<Option<LiveDOMReferences>>> =
|
||||
Rc::new(RefCell::new(None)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue