@@ -25,7 +25,7 @@ impl fmt::Display for CudaBuilderError {
25
25
}
26
26
CudaBuilderError :: BuildFailed => f. write_str ( "Build failed" ) ,
27
27
CudaBuilderError :: FailedToCopyPtxFile ( err) => {
28
- f. write_str ( & format ! ( "Failed to copy PTX file: {:?}" , err ) )
28
+ f. write_str ( & format ! ( "Failed to copy PTX file: {err :?}" ) )
29
29
}
30
30
}
31
31
}
@@ -369,19 +369,14 @@ fn find_rustc_codegen_nvvm() -> PathBuf {
369
369
return path;
370
370
}
371
371
}
372
- panic ! ( "Could not find {} in library path" , filename ) ;
372
+ panic ! ( "Could not find {filename } in library path" ) ;
373
373
}
374
374
375
375
/// Joins strings together while ensuring none of the strings contain the separator.
376
376
fn join_checking_for_separators ( strings : Vec < impl Borrow < str > > , sep : & str ) -> String {
377
377
for s in & strings {
378
378
let s = s. borrow ( ) ;
379
- assert ! (
380
- !s. contains( sep) ,
381
- "{:?} may not contain separator {:?}" ,
382
- s,
383
- sep
384
- ) ;
379
+ assert ! ( !s. contains( sep) , "{s:?} may not contain separator {sep:?}" ) ;
385
380
}
386
381
strings. join ( sep)
387
382
}
@@ -404,7 +399,7 @@ fn invoke_rustc(builder: &CudaBuilder) -> Result<PathBuf, CudaBuilderError> {
404
399
EmitOption :: LlvmIr => "llvm-ir" ,
405
400
EmitOption :: Bitcode => "llvm-bc" ,
406
401
} ;
407
- rustflags. push ( format ! ( "--emit={}" , string ) ) ;
402
+ rustflags. push ( format ! ( "--emit={string}" ) ) ;
408
403
}
409
404
410
405
let mut llvm_args = vec ! [ NvvmOption :: Arch ( builder. arch) . to_string( ) ] ;
@@ -533,7 +528,7 @@ fn get_last_artifact(out: &str) -> Option<PathBuf> {
533
528
Ok ( line) => Some ( line) ,
534
529
Err ( _) => {
535
530
// Pass through invalid lines
536
- println ! ( "{}" , line ) ;
531
+ println ! ( "{line}" ) ;
537
532
None
538
533
}
539
534
} )
0 commit comments