File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -292,8 +292,7 @@ mod llvm {
292
292
let other_mod_path =
293
293
quote ! { #( #other_mod_path:: ) * #ident } ;
294
294
panic ! (
295
- "duplicate function `{}` `{}`" ,
296
- mod_path, other_mod_path
295
+ "duplicate function `{mod_path}` `{other_mod_path}`"
297
296
) ;
298
297
}
299
298
Entry :: Vacant ( entry) => {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ fn arch2backend(arch: &str) -> String {
31
31
"powerpc" | "powerpc64" => "PowerPC" . into ( ) ,
32
32
"sparc" | "sparc64" => "Sparc" . into ( ) ,
33
33
"x86" | "x86_64" => "X86" . into ( ) ,
34
- _ => panic ! ( "Unknown backend: {}" , arch ) ,
34
+ _ => panic ! ( "Unknown backend: {arch}" ) ,
35
35
}
36
36
}
37
37
@@ -42,7 +42,7 @@ fn get_native_backend() -> String {
42
42
43
43
unsafe fn init_all ( postfix : & str ) {
44
44
for backend in POSSIBLE_BACKENDS {
45
- let name = format ! ( "LLVMInitialize{}{}" , backend , postfix ) ;
45
+ let name = format ! ( "LLVMInitialize{backend}{postfix}" ) ;
46
46
if let Ok ( entrypoint) = SHARED_LIB . get :: < unsafe extern "C" fn ( ) > ( name. as_bytes ( ) ) {
47
47
entrypoint ( ) ;
48
48
}
@@ -72,7 +72,7 @@ pub unsafe extern "C" fn LLVM_InitializeAllAsmPrinters() {
72
72
73
73
unsafe fn init_native ( postfix : & str ) -> LLVMBool {
74
74
let backend = get_native_backend ( ) ;
75
- let name = format ! ( "LLVMInitialize{}{}" , backend , postfix ) ;
75
+ let name = format ! ( "LLVMInitialize{backend}{postfix}" ) ;
76
76
if let Ok ( entrypoint) = SHARED_LIB . get :: < unsafe extern "C" fn ( ) > ( name. as_bytes ( ) ) {
77
77
entrypoint ( ) ;
78
78
0
You can’t perform that action at this time.
0 commit comments