Skip to content

Commit 90e5918

Browse files
hdshawkw
authored andcommitted
fix(console): remove trailing space from task/resource location (#443)
* fix(console): remove trailing space from task/resource location When a file location is formatted, an extra space is added at the end. This appears to be the result of some refactoring from a case where we needed the extra space at the end. Currently, the extra space results in there being 2 spaces between the Location column and the Fields column in the tasks list view, and the same between the Location column and the Attributes column in the resources list view. It is also causing issues when attempting to truncate the first part of the location in #441 (during which this extra space was discovered). This change removes the trailing space.
1 parent 8eb2a2a commit 90e5918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio-console/src/state/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ fn format_location(loc: Option<proto::Location>) -> String {
522522
let truncated = truncate_registry_path(file);
523523
l.file = Some(truncated);
524524
}
525-
format!("{} ", l)
525+
l.to_string()
526526
})
527527
.unwrap_or_else(|| "<unknown location>".to_string())
528528
}

0 commit comments

Comments
 (0)