diff options
Diffstat (limited to 'invalidstring/src')
-rw-r--r-- | invalidstring/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/invalidstring/src/lib.rs b/invalidstring/src/lib.rs index be241417..9d245997 100644 --- a/invalidstring/src/lib.rs +++ b/invalidstring/src/lib.rs @@ -1,8 +1,8 @@ /// uses unsafe to postfix the string with invalid utf8 data pub fn invalid_utf8(prefix: &str) -> String { - let bytes = b"\xc3\x73"; + let bytes = b"\xc3\x73"; - unsafe { - format!("{}{}", prefix, std::str::from_utf8_unchecked(bytes)) - } + unsafe { + format!("{}{}", prefix, std::str::from_utf8_unchecked(bytes)) + } } |