diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2023-09-08 14:11:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 12:11:31 +0000 |
commit | 711dbbd4afe161fc334db198357d814e99e5ac57 (patch) | |
tree | 5c0e3a6a18dd26c9e39a47a790c6ec36f0ff8d4d /components/url | |
parent | a0cff6a0858e675b805a71238ab96fa295a271f8 (diff) | |
download | servo-711dbbd4afe161fc334db198357d814e99e5ac57.tar.gz servo-711dbbd4afe161fc334db198357d814e99e5ac57.zip |
remove `extern crate` (#30311)
* remove extern crate
* Update components/script_plugins/lib.rs
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/url')
-rw-r--r-- | components/url/lib.rs | 9 | ||||
-rw-r--r-- | components/url/origin.rs | 3 |
2 files changed, 5 insertions, 7 deletions
diff --git a/components/url/lib.rs b/components/url/lib.rs index e230ec56d3e..6d2fbff9f9d 100644 --- a/components/url/lib.rs +++ b/components/url/lib.rs @@ -6,17 +6,12 @@ #![crate_name = "servo_url"] #![crate_type = "rlib"] -#[macro_use] -extern crate malloc_size_of; -#[macro_use] -extern crate malloc_size_of_derive; -#[macro_use] -extern crate serde; - 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; diff --git a/components/url/origin.rs b/components/url/origin.rs index b272eb96e52..77abef4c349 100644 --- a/components/url/origin.rs +++ b/components/url/origin.rs @@ -2,6 +2,9 @@ * 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 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}; |