Skip to content

Commit 6b2d3bd

Browse files
committed
Format code using 'cargo fmt'
1 parent 5d0ed9e commit 6b2d3bd

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/test.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
use async_std::net::{TcpListener, TcpStream};
2-
use async_std::task;
31
use async_std::io;
4-
use async_std::sync::channel;
2+
use async_std::net::{TcpListener, TcpStream};
53
use async_std::prelude::*;
4+
use async_std::sync::channel;
5+
use async_std::task;
66
use async_tls::{TlsAcceptor, TlsConnector};
77
use lazy_static::lazy_static;
88
use rustls::internal::pemfile::{certs, rsa_private_keys};
99
use rustls::{ClientConfig, ServerConfig};
10-
use std::net::SocketAddr;
1110
use std::io::{BufReader, Cursor};
11+
use std::net::SocketAddr;
1212
use std::sync::Arc;
1313

1414
const CERT: &str = include_str!("end.cert");
@@ -49,9 +49,7 @@ lazy_static! {
4949
Ok(()) as io::Result<()>
5050
});
5151

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() });
5553
(addr, "localhost", CHAIN)
5654
};
5755
}

0 commit comments

Comments
 (0)