Edition 2021, apply clippy::uninlined_format_args fix (#1339)

This commit is contained in:
Yuri Astrakhan
2022-10-25 15:17:23 -04:00
committed by GitHub
parent 4273e3cf8b
commit 81c221f058
28 changed files with 229 additions and 241 deletions

View File

@@ -59,7 +59,7 @@ pub fn simd_test(
let macro_test = match target
.split('-')
.next()
.unwrap_or_else(|| panic!("target triple contained no \"-\": {}", target))
.unwrap_or_else(|| panic!("target triple contained no \"-\": {target}"))
{
"i686" | "x86_64" | "i586" => "is_x86_feature_detected",
"arm" | "armv7" => "is_arm_feature_detected",
@@ -82,7 +82,7 @@ pub fn simd_test(
force_test = true;
"is_mips64_feature_detected"
}
t => panic!("unknown target: {}", t),
t => panic!("unknown target: {t}"),
};
let macro_test = Ident::new(macro_test, Span::call_site());