@@ -265,7 +265,7 @@ fn unpack_wheel_files<R: Read + Seek>(
265
265
266
266
if let Some ( p) = out_path. parent ( ) {
267
267
if !created_dirs. contains ( p) {
268
- fs:: create_dir_all ( & p) ?;
268
+ fs:: create_dir_all ( p) ?;
269
269
created_dirs. insert ( p. to_path_buf ( ) ) ;
270
270
}
271
271
}
@@ -424,7 +424,7 @@ fn write_script_entrypoints(
424
424
record : & mut Vec < RecordEntry > ,
425
425
) -> Result < ( ) , Error > {
426
426
// for monotrail
427
- fs:: create_dir_all ( site_packages. join ( & bin_rel ( ) ) ) ?;
427
+ fs:: create_dir_all ( site_packages. join ( bin_rel ( ) ) ) ?;
428
428
for entrypoint in entrypoints {
429
429
let entrypoint_relative = if cfg ! ( windows) {
430
430
// On windows we actually build an .exe wrapper
@@ -628,7 +628,7 @@ fn bytecode_compile_inner(
628
628
. stdin ( Stdio :: piped ( ) )
629
629
. stdout ( Stdio :: piped ( ) )
630
630
. stderr ( Stdio :: inherit ( ) )
631
- . current_dir ( & site_packages)
631
+ . current_dir ( site_packages)
632
632
. spawn ( )
633
633
. map_err ( Error :: PythonSubcommand ) ?;
634
634
@@ -708,14 +708,14 @@ fn move_folder_recorded(
708
708
record : & mut [ RecordEntry ] ,
709
709
) -> Result < ( ) , Error > {
710
710
if !dest_dir. is_dir ( ) {
711
- fs:: create_dir_all ( & dest_dir) ?;
711
+ fs:: create_dir_all ( dest_dir) ?;
712
712
}
713
- for entry in WalkDir :: new ( & src_dir) {
713
+ for entry in WalkDir :: new ( src_dir) {
714
714
let entry = entry?;
715
715
let src = entry. path ( ) ;
716
716
// This is the base path for moving to the actual target for the data
717
717
// e.g. for data it's without <..>.data/data/
718
- let relative_to_data = src. strip_prefix ( & src_dir) . expect ( "Prefix must no change" ) ;
718
+ let relative_to_data = src. strip_prefix ( src_dir) . expect ( "Prefix must no change" ) ;
719
719
// This is the path stored in RECORD
720
720
// e.g. for data it's with .data/data/
721
721
let relative_to_site_packages = src
@@ -787,7 +787,7 @@ fn install_script(
787
787
} else {
788
788
// reading and writing is slow especially for large binaries, so we move them instead
789
789
drop ( script) ;
790
- fs:: rename ( & path, & site_packages. join ( & target_path) ) ?;
790
+ fs:: rename ( & path, site_packages. join ( & target_path) ) ?;
791
791
None
792
792
} ;
793
793
#[ cfg( unix) ]
@@ -1377,7 +1377,7 @@ mod test {
1377
1377
. join ( "site-packages" )
1378
1378
. join ( "colander-0.9.9.dist-info" )
1379
1379
. join ( "RECORD" ) ;
1380
- let record = fs:: read_to_string ( & record) . unwrap ( ) ;
1380
+ let record = fs:: read_to_string ( record) . unwrap ( ) ;
1381
1381
for line in record. lines ( ) {
1382
1382
assert ! ( !line. starts_with( '/' ) , "{}" , line) ;
1383
1383
}
0 commit comments