mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Don't convert hash to string.
This commit is contained in:
parent
4168227382
commit
21e10b201a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue