Skip to content

Commit c705712

Browse files
committed
fix rust clippy
1 parent e5acee1 commit c705712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invalidstring/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ pub fn invalid_utf8(prefix: &str) -> String {
33
let bytes = b"\xc3\x73";
44

55
unsafe {
6-
format!("{}{}", prefix, std::str::from_utf8_unchecked(bytes))
6+
format!("{prefix}{}", std::str::from_utf8_unchecked(bytes))
77
}
88
}

0 commit comments

Comments
 (0)