Use hex for debug url hash.

This commit is contained in:
Josh Matthews 2019-01-28 15:13:45 -05:00 committed by GitHub
parent abc5b2a5bc
commit 4168227382
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)