@@ -87,7 +87,7 @@ impl Build {
87
87
88
88
// Copy release version file
89
89
#[ rustfmt:: skip]
90
- fs:: copy ( & manifest_dir. join ( "luajit_relver.txt" ) , & build_dir. join ( ".relver" ) ) . unwrap ( ) ;
90
+ fs:: copy ( manifest_dir. join ( "luajit_relver.txt" ) , build_dir. join ( ".relver" ) ) . unwrap ( ) ;
91
91
92
92
let mut cc = cc:: Build :: new ( ) ;
93
93
cc. warnings ( false ) ;
@@ -215,7 +215,7 @@ impl Build {
215
215
216
216
// Copy release version file
217
217
#[ rustfmt:: skip]
218
- fs:: copy ( & manifest_dir. join ( "luajit_relver.txt" ) , & build_dir. join ( ".relver" ) ) . unwrap ( ) ;
218
+ fs:: copy ( manifest_dir. join ( "luajit_relver.txt" ) , build_dir. join ( ".relver" ) ) . unwrap ( ) ;
219
219
220
220
let mut msvcbuild = Command :: new ( build_dir. join ( "src" ) . join ( "msvcbuild.bat" ) ) ;
221
221
msvcbuild. current_dir ( build_dir. join ( "src" ) ) ;
@@ -239,16 +239,14 @@ impl Build {
239
239
}
240
240
241
241
fn run_command ( & self , mut command : Command , desc : & str ) {
242
- println ! ( "running {:?}" , command) ;
243
242
let status = command. status ( ) . unwrap ( ) ;
244
243
if !status. success ( ) {
245
244
panic ! (
246
245
"
247
- Error {}:
248
- Command: {:?}
249
- Exit status: {}
250
- " ,
251
- desc, command, status
246
+ Error {desc}:
247
+ Command: {command:?}
248
+ Exit status: {status}
249
+ "
252
250
) ;
253
251
}
254
252
}
@@ -295,7 +293,7 @@ impl Artifacts {
295
293
296
294
println ! ( "cargo:rustc-link-search=native={}" , self . lib_dir. display( ) ) ;
297
295
for lib in self . libs . iter ( ) {
298
- println ! ( "cargo:rustc-link-lib=static={}" , lib ) ;
296
+ println ! ( "cargo:rustc-link-lib=static={lib}" ) ;
299
297
}
300
298
}
301
299
}
0 commit comments