diff --git a/components/url/lib.rs b/components/url/lib.rs index 2a3069ff36b..4f236a7a225 100644 --- a/components/url/lib.rs +++ b/components/url/lib.rs @@ -23,7 +23,7 @@ use std::path::Path; use std::sync::Arc; use url::{Url, Origin, Position}; -#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cfg_attr(feature = "servo", derive(HeapSizeOf, Serialize, Deserialize))] pub struct ServoUrl(Arc); @@ -158,6 +158,12 @@ impl fmt::Display for ServoUrl { } } +impl fmt::Debug for ServoUrl { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + self.0.fmt(formatter) + } +} + impl Index for ServoUrl { type Output = str; fn index(&self, _: RangeFull) -> &str {