mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +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
|
@ -8,10 +8,6 @@
|
|||
|
||||
pub mod origin;
|
||||
|
||||
pub use crate::origin::{ImmutableOrigin, MutableOrigin, OpaqueOrigin};
|
||||
|
||||
use malloc_size_of_derive::MallocSizeOf;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::collections::hash_map::DefaultHasher;
|
||||
use std::fmt;
|
||||
use std::hash::Hasher;
|
||||
|
@ -19,10 +15,14 @@ use std::net::IpAddr;
|
|||
use std::ops::{Index, Range, RangeFrom, RangeFull, RangeTo};
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
|
||||
use malloc_size_of_derive::MallocSizeOf;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use to_shmem::{SharedMemoryBuilder, ToShmem};
|
||||
pub use url::Host;
|
||||
use url::{Position, Url};
|
||||
|
||||
pub use url::Host;
|
||||
pub use crate::origin::{ImmutableOrigin, MutableOrigin, OpaqueOrigin};
|
||||
|
||||
#[derive(Clone, Deserialize, Eq, Hash, MallocSizeOf, Ord, PartialEq, PartialOrd, Serialize)]
|
||||
pub struct ServoUrl(#[ignore_malloc_size_of = "Arc"] Arc<Url>);
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
|
||||
use malloc_size_of::malloc_size_of_is_0;
|
||||
use malloc_size_of_derive::MallocSizeOf;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
use url::{Host, Origin};
|
||||
use uuid::Uuid;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue