diff options
Diffstat (limited to 'components/url/lib.rs')
-rw-r--r-- | components/url/lib.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/components/url/lib.rs b/components/url/lib.rs index aba2989cb18..b7d61273370 100644 --- a/components/url/lib.rs +++ b/components/url/lib.rs @@ -7,8 +7,8 @@ #![crate_name = "servo_url"] #![crate_type = "rlib"] -#[macro_use] extern crate heapsize; -#[macro_use] extern crate heapsize_derive; +#[macro_use] extern crate malloc_size_of; +#[macro_use] extern crate malloc_size_of_derive; #[macro_use] extern crate serde; extern crate servo_rand; extern crate url; @@ -28,8 +28,11 @@ use url::{Url, Position}; pub use url::Host; -#[derive(Clone, Eq, Hash, HeapSizeOf, Ord, PartialEq, PartialOrd)] -pub struct ServoUrl(Arc<Url>); +#[derive(Clone, Eq, Hash, MallocSizeOf, Ord, PartialEq, PartialOrd)] +pub struct ServoUrl( + #[ignore_malloc_size_of = "Arc"] + Arc<Url> +); impl ServoUrl { pub fn from_url(url: Url) -> Self { |