diff --git a/tokio-console/src/state/mod.rs b/tokio-console/src/state/mod.rs index 86dc24e11..982e816b9 100644 --- a/tokio-console/src/state/mod.rs +++ b/tokio-console/src/state/mod.rs @@ -522,7 +522,7 @@ fn format_location(loc: Option) -> String { let truncated = truncate_registry_path(file); l.file = Some(truncated); } - format!("{} ", l) + l.to_string() }) .unwrap_or_else(|| "".to_string()) }