File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ libc = { version = "0.2", optional = true }
42
42
[dev-dependencies ]
43
43
futures-util = { version = " 0.3" , default-features = false , features = [" alloc" ] }
44
44
http-body-util = " =0.1.0-rc.3"
45
- matches = " 0.1"
46
45
pretty_env_logger = " 0.4"
47
46
spmc = " 0.3"
48
47
serde = { version = " 1.0" , features = [" derive" ] }
Original file line number Diff line number Diff line change 1
1
#![ deny( warnings) ]
2
2
#![ warn( rust_2018_idioms) ]
3
3
4
- #[ macro_use]
5
- extern crate matches;
6
-
7
4
use std:: convert:: Infallible ;
8
5
use std:: fmt;
9
6
use std:: future:: Future ;
@@ -1781,7 +1778,7 @@ mod conn {
1781
1778
assert ! ( !io. shutdown_called, "upgrade shouldn't shutdown AsyncWrite" ) ;
1782
1779
rt. block_on ( poll_fn ( |ctx| {
1783
1780
let ready = client. poll_ready ( ctx) ;
1784
- assert_matches ! ( ready, Poll :: Ready ( Err ( _) ) ) ;
1781
+ assert ! ( matches! ( ready, Poll :: Ready ( Err ( _) ) ) ) ;
1785
1782
ready
1786
1783
} ) )
1787
1784
. unwrap_err ( ) ;
@@ -1871,7 +1868,7 @@ mod conn {
1871
1868
1872
1869
rt. block_on ( poll_fn ( |ctx| {
1873
1870
let ready = client. poll_ready ( ctx) ;
1874
- assert_matches ! ( ready, Poll :: Ready ( Err ( _) ) ) ;
1871
+ assert ! ( matches! ( ready, Poll :: Ready ( Err ( _) ) ) ) ;
1875
1872
ready
1876
1873
} ) )
1877
1874
. unwrap_err ( ) ;
You can’t perform that action at this time.
0 commit comments