rust: Use inline format! variables in a few places

Since our MSRV now supports it.
This commit is contained in:
Colin Walters committed 2022-06-09 17:51:07 -04:00
1 parent 76071a2b11
commit 93e3784b66
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ mod tests {
#[test]
fn should_stringify_object_name() {
let object_name = ObjectName::new("abcdef123456", ObjectType::DirTree);
let stringified = format!("{}", object_name);
let stringified = format!("{object_name}");
assert_eq!(stringified, "abcdef123456.dirtree");
}