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
72
72
fn from_socket < Socketlike : io_lifetimes:: IntoSocketlike > ( _socketlike : Socketlike ) { }
73
73
@@ -78,10 +78,10 @@ impl Stream {
78
78
79
79
#[ test]
80
80
fn likes ( ) {
81
- let _ = Stream :: use_socket ( & mut std:: net:: TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ) ;
82
- let _ = Stream :: use_file ( & mut std:: fs:: File :: open ( "Cargo.toml" ) . unwrap ( ) ) ;
83
- let _ = Stream :: use_grip ( & mut std:: net:: TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ) ;
84
- let _ = Stream :: use_grip ( & mut std:: fs:: File :: open ( "Cargo.toml" ) . unwrap ( ) ) ;
81
+ let _ = Stream :: use_socket ( std:: net:: TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ) ;
82
+ let _ = Stream :: use_file ( std:: fs:: File :: open ( "Cargo.toml" ) . unwrap ( ) ) ;
83
+ let _ = Stream :: use_grip ( std:: net:: TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ) ;
84
+ let _ = Stream :: use_grip ( std:: fs:: File :: open ( "Cargo.toml" ) . unwrap ( ) ) ;
85
85
86
86
let _ = Stream :: from_socket ( std:: net:: TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ) ;
87
87
let _ = Stream :: from_file ( std:: fs:: File :: open ( "Cargo.toml" ) . unwrap ( ) ) ;
You can’t perform that action at this time.
0 commit comments