aboutsummaryrefslogtreecommitdiffstats
path: root/components/url
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-01-28 15:56:13 -0500
committerGitHub <noreply@github.com>2019-01-28 15:56:13 -0500
commit21e10b201a272a806b72d412b946a53d00436367 (patch)
tree271b3064f377481ea0bddb78b94dd35cc3528887 /components/url
parent416822738232d4a020c81ea459b62017a269f2ea (diff)
downloadservo-21e10b201a272a806b72d412b946a53d00436367.tar.gz
servo-21e10b201a272a806b72d412b946a53d00436367.zip
Don't convert hash to string.
Diffstat (limited to 'components/url')
-rw-r--r--components/url/lib.rs2
1 files changed, 1 insertions, 1 deletions
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)