From 416822738232d4a020c81ea459b62017a269f2ea Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Mon, 28 Jan 2019 15:13:45 -0500 Subject: [PATCH] Use hex for debug url hash. --- components/url/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)