File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ matrix:
13
13
os : osx
14
14
15
15
script :
16
+ - |
17
+ if [[ "$TRAVIS_RUST_VERSION" == stable ]]
18
+ then
19
+ rustup component add rustfmt
20
+ cargo fmt --all -- --check
21
+ fi
16
22
- cargo test
17
23
- cargo test --features early-data
18
24
- cd examples/server
Original file line number Diff line number Diff line change 1
- use async_std:: net:: { TcpListener , TcpStream } ;
2
- use async_std:: task;
3
1
use async_std:: io;
4
- use async_std:: sync :: channel ;
2
+ use async_std:: net :: { TcpListener , TcpStream } ;
5
3
use async_std:: prelude:: * ;
4
+ use async_std:: sync:: channel;
5
+ use async_std:: task;
6
6
use async_tls:: { TlsAcceptor , TlsConnector } ;
7
7
use lazy_static:: lazy_static;
8
8
use rustls:: internal:: pemfile:: { certs, rsa_private_keys} ;
9
9
use rustls:: { ClientConfig , ServerConfig } ;
10
- use std:: net:: SocketAddr ;
11
10
use std:: io:: { BufReader , Cursor } ;
11
+ use std:: net:: SocketAddr ;
12
12
use std:: sync:: Arc ;
13
13
14
14
const CERT : & str = include_str ! ( "end.cert" ) ;
@@ -49,9 +49,7 @@ lazy_static! {
49
49
Ok ( ( ) ) as io:: Result <( ) >
50
50
} ) ;
51
51
52
- let addr = task:: block_on( async move {
53
- recv. recv( ) . await . unwrap( )
54
- } ) ;
52
+ let addr = task:: block_on( async move { recv. recv( ) . await . unwrap( ) } ) ;
55
53
( addr, "localhost" , CHAIN )
56
54
} ;
57
55
}
You can’t perform that action at this time.
0 commit comments