From c705712a050584c593bc512eb30512d4470791a8 Mon Sep 17 00:00:00 2001 From: extrawurst Date: Wed, 26 Oct 2022 14:34:33 +0200 Subject: [PATCH] fix rust clippy --- invalidstring/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invalidstring/src/lib.rs b/invalidstring/src/lib.rs index 9d245997..99415dcf 100644 --- a/invalidstring/src/lib.rs +++ b/invalidstring/src/lib.rs @@ -3,6 +3,6 @@ pub fn invalid_utf8(prefix: &str) -> String { let bytes = b"\xc3\x73"; unsafe { - format!("{}{}", prefix, std::str::from_utf8_unchecked(bytes)) + format!("{prefix}{}", std::str::from_utf8_unchecked(bytes)) } }