File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ repository = "https://github.com/sunfishcode/io-extras"
11
11
exclude = [" /.github" ]
12
12
13
13
[dependencies ]
14
- io-lifetimes = { version = " 0.5.1 " , default-features = false }
14
+ io-lifetimes = { version = " 0.5.2 " , default-features = false }
15
15
16
16
# Optionally depend on async-std to implement traits for its types.
17
17
#
Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ fn read_write() {
63
63
64
64
struct Stream { }
65
65
impl Stream {
66
- fn use_socket < Socketlike : io_lifetimes:: AsSocketlike > ( _socketlike : & mut Socketlike ) { }
66
+ fn use_socket < Socketlike : io_lifetimes:: AsSocketlike > ( _socketlike : Socketlike ) { }
67
67
68
- fn use_file < Filelike : io_lifetimes:: AsFilelike > ( _filelike : & mut Filelike ) { }
68
+ fn use_file < Filelike : io_lifetimes:: AsFilelike > ( _filelike : Filelike ) { }
69
69
70
- fn use_grip < Grip : io_extras:: grip:: AsGrip > ( grip : & mut Grip ) {
70
+ fn use_grip < Grip : io_extras:: grip:: AsGrip > ( grip : Grip ) {
71
71
#[ cfg( windows) ]
72
72
assert_ne ! (
73
73
grip. as_handle_or_socket( ) . as_handle( ) . is_some( ) ,
@@ -86,10 +86,10 @@ impl Stream {
86
86
87
87
#[ test]
88
88
fn likes ( ) {
89
- let _ = Stream :: use_socket ( & mut std:: net:: TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ) ;
90
- let _ = Stream :: use_file ( & mut std:: fs:: File :: open ( "Cargo.toml" ) . unwrap ( ) ) ;
91
- let _ = Stream :: use_grip ( & mut std:: net:: TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ) ;
92
- let _ = Stream :: use_grip ( & mut std:: fs:: File :: open ( "Cargo.toml" ) . unwrap ( ) ) ;
89
+ let _ = Stream :: use_socket ( std:: net:: TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ) ;
90
+ let _ = Stream :: use_file ( std:: fs:: File :: open ( "Cargo.toml" ) . unwrap ( ) ) ;
91
+ let _ = Stream :: use_grip ( std:: net:: TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ) ;
92
+ let _ = Stream :: use_grip ( std:: fs:: File :: open ( "Cargo.toml" ) . unwrap ( ) ) ;
93
93
94
94
let _ = Stream :: from_socket ( std:: net:: TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ) ;
95
95
let _ = Stream :: from_file ( std:: fs:: File :: open ( "Cargo.toml" ) . unwrap ( ) ) ;
You can’t perform that action at this time.
0 commit comments