@@ -548,7 +548,7 @@ impl File {
548548 let user = super :: args:: from_wide_to_user_path (
549549 subst. iter ( ) . copied ( ) . chain ( [ 0 ] ) . collect ( ) ,
550550 ) ?;
551- Ok ( PathBuf :: from ( OsString :: from_wide ( & user. strip_suffix ( & [ 0 ] ) . unwrap_or ( & user) ) ) )
551+ Ok ( PathBuf :: from ( OsString :: from_wide ( user. strip_suffix ( & [ 0 ] ) . unwrap_or ( & user) ) ) )
552552 } else {
553553 Ok ( PathBuf :: from ( OsString :: from_wide ( subst) ) )
554554 }
@@ -874,7 +874,7 @@ impl fmt::Debug for File {
874874 // FIXME(#24570): add more info here (e.g., mode)
875875 let mut b = f. debug_struct ( "File" ) ;
876876 b. field ( "handle" , & self . handle . as_raw_handle ( ) ) ;
877- if let Ok ( path) = get_path ( & self ) {
877+ if let Ok ( path) = get_path ( self ) {
878878 b. field ( "path" , & path) ;
879879 }
880880 b. finish ( )
@@ -1193,7 +1193,7 @@ pub fn readlink(path: &Path) -> io::Result<PathBuf> {
11931193 let mut opts = OpenOptions :: new ( ) ;
11941194 opts. access_mode ( 0 ) ;
11951195 opts. custom_flags ( c:: FILE_FLAG_OPEN_REPARSE_POINT | c:: FILE_FLAG_BACKUP_SEMANTICS ) ;
1196- let file = File :: open ( & path, & opts) ?;
1196+ let file = File :: open ( path, & opts) ?;
11971197 file. readlink ( )
11981198}
11991199
@@ -1407,7 +1407,7 @@ pub fn symlink_junction<P: AsRef<Path>, Q: AsRef<Path>>(
14071407#[ allow( dead_code) ]
14081408fn symlink_junction_inner ( original : & Path , junction : & Path ) -> io:: Result < ( ) > {
14091409 let d = DirBuilder :: new ( ) ;
1410- d. mkdir ( & junction) ?;
1410+ d. mkdir ( junction) ?;
14111411
14121412 let mut opts = OpenOptions :: new ( ) ;
14131413 opts. write ( true ) ;
0 commit comments