@@ -87,7 +87,7 @@ impl Build {
8787
8888 // Copy release version file
8989 #[ 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 ( ) ;
9191
9292 let mut cc = cc:: Build :: new ( ) ;
9393 cc. warnings ( false ) ;
@@ -215,7 +215,7 @@ impl Build {
215215
216216 // Copy release version file
217217 #[ 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 ( ) ;
219219
220220 let mut msvcbuild = Command :: new ( build_dir. join ( "src" ) . join ( "msvcbuild.bat" ) ) ;
221221 msvcbuild. current_dir ( build_dir. join ( "src" ) ) ;
@@ -239,16 +239,14 @@ impl Build {
239239 }
240240
241241 fn run_command ( & self , mut command : Command , desc : & str ) {
242- println ! ( "running {:?}" , command) ;
243242 let status = command. status ( ) . unwrap ( ) ;
244243 if !status. success ( ) {
245244 panic ! (
246245 "
247- Error {}:
248- Command: {:?}
249- Exit status: {}
250- " ,
251- desc, command, status
246+ Error {desc}:
247+ Command: {command:?}
248+ Exit status: {status}
249+ "
252250 ) ;
253251 }
254252 }
@@ -295,7 +293,7 @@ impl Artifacts {
295293
296294 println ! ( "cargo:rustc-link-search=native={}" , self . lib_dir. display( ) ) ;
297295 for lib in self . libs . iter ( ) {
298- println ! ( "cargo:rustc-link-lib=static={}" , lib ) ;
296+ println ! ( "cargo:rustc-link-lib=static={lib}" ) ;
299297 }
300298 }
301299}
0 commit comments