rust: Use inline format! variables in a few places
Since our MSRV now supports it.
This commit is contained in:
1 parent
76071a2b11
commit
93e3784b66
3 files changed
+7
-7
No files matched your search
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user