From 21e10b201a272a806b72d412b946a53d00436367 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Mon, 28 Jan 2019 15:56:13 -0500 Subject: [PATCH] Don't convert hash to string. --- 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 fe34c9ebe2b..dccd27a8b00 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!("{}... ({:x})", truncated, hasher.finish().to_string()); + let result = format!("{}... ({:x})", truncated, hasher.finish()); return result.fmt(formatter); } self.0.fmt(formatter)