File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2346,17 +2346,17 @@ mod tests {
2346
2346
2347
2347
#[ test]
2348
2348
fn recursive_mkdir_slash ( ) {
2349
- check ! ( fs:: create_dir_all( & Path :: new( "/" ) ) ) ;
2349
+ check ! ( fs:: create_dir_all( Path :: new( "/" ) ) ) ;
2350
2350
}
2351
2351
2352
2352
#[ test]
2353
2353
fn recursive_mkdir_dot ( ) {
2354
- check ! ( fs:: create_dir_all( & Path :: new( "." ) ) ) ;
2354
+ check ! ( fs:: create_dir_all( Path :: new( "." ) ) ) ;
2355
2355
}
2356
2356
2357
2357
#[ test]
2358
2358
fn recursive_mkdir_empty ( ) {
2359
- check ! ( fs:: create_dir_all( & Path :: new( "" ) ) ) ;
2359
+ check ! ( fs:: create_dir_all( Path :: new( "" ) ) ) ;
2360
2360
}
2361
2361
2362
2362
#[ test]
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ impl TcpStream {
29
29
let mut options = OpenOptions :: new ( ) ;
30
30
options. read ( true ) ;
31
31
options. write ( true ) ;
32
- Ok ( TcpStream ( File :: open ( & Path :: new ( path. as_str ( ) ) , & options) ?) )
32
+ Ok ( TcpStream ( File :: open ( Path :: new ( path. as_str ( ) ) , & options) ?) )
33
33
}
34
34
35
35
pub fn connect_timeout ( _addr : & SocketAddr , _timeout : Duration ) -> Result < TcpStream > {
@@ -177,7 +177,7 @@ impl TcpListener {
177
177
let mut options = OpenOptions :: new ( ) ;
178
178
options. read ( true ) ;
179
179
options. write ( true ) ;
180
- Ok ( TcpListener ( File :: open ( & Path :: new ( path. as_str ( ) ) , & options) ?) )
180
+ Ok ( TcpListener ( File :: open ( Path :: new ( path. as_str ( ) ) , & options) ?) )
181
181
}
182
182
183
183
pub fn accept ( & self ) -> Result < ( TcpStream , SocketAddr ) > {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ impl UdpSocket {
30
30
let mut options = OpenOptions :: new ( ) ;
31
31
options. read ( true ) ;
32
32
options. write ( true ) ;
33
- Ok ( UdpSocket ( File :: open ( & Path :: new ( path. as_str ( ) ) , & options) ?, UnsafeCell :: new ( None ) ) )
33
+ Ok ( UdpSocket ( File :: open ( Path :: new ( path. as_str ( ) ) , & options) ?, UnsafeCell :: new ( None ) ) )
34
34
}
35
35
36
36
fn get_conn ( & self ) -> & mut Option < SocketAddr > {
Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ impl Stdio {
393
393
let mut opts = OpenOptions :: new ( ) ;
394
394
opts. read ( readable) ;
395
395
opts. write ( !readable) ;
396
- let fd = File :: open ( & Path :: new ( "null:" ) , & opts) ?;
396
+ let fd = File :: open ( Path :: new ( "null:" ) , & opts) ?;
397
397
Ok ( ( ChildStdio :: Owned ( fd. into_fd ( ) ) , None ) )
398
398
}
399
399
}
You can’t perform that action at this time.
0 commit comments