diff --git a/components/url/lib.rs b/components/url/lib.rs index b8ab58abeb6..fe34c9ebe2b 100644 --- a/components/url/lib.rs +++ b/components/url/lib.rs @@ -174,7 +174,7 @@ impl fmt::Debug for ServoUrl { if self.0.as_str().len() > 40 { let hasher = DefaultHasher::new(); let truncated: String = self.0.as_str().chars().take(40).collect(); - let result = format!("{}... ({})", truncated, hasher.finish().to_string()); + let result = format!("{}... ({:x})", truncated, hasher.finish().to_string()); return result.fmt(formatter); } self.0.fmt(formatter)