We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5acee1 commit c705712Copy full SHA for c705712
invalidstring/src/lib.rs
@@ -3,6 +3,6 @@ pub fn invalid_utf8(prefix: &str) -> String {
3
let bytes = b"\xc3\x73";
4
5
unsafe {
6
- format!("{}{}", prefix, std::str::from_utf8_unchecked(bytes))
+ format!("{prefix}{}", std::str::from_utf8_unchecked(bytes))
7
}
8
0 commit comments