Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/profile/src/memory_usage.rs')
| -rw-r--r-- | crates/profile/src/memory_usage.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/profile/src/memory_usage.rs b/crates/profile/src/memory_usage.rs index fbcb9e3c28..885fe1f1aa 100644 --- a/crates/profile/src/memory_usage.rs +++ b/crates/profile/src/memory_usage.rs @@ -11,8 +11,8 @@ pub struct MemoryUsage { } impl fmt::Display for MemoryUsage { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - write!(fmt, "{}", self.allocated) + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + self.allocated.fmt(f) } } |