chore: remove benches and fix/work around clippy lints (#1952)

This commit is contained in:
Artem Vorotnikov
2019-12-13 22:01:47 -08:00
committed by Carl Lerche
parent 91ecb4b4c2
commit d593c5b051
34 changed files with 89 additions and 1041 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ use tokio_util::codec::{Decoder, Encoder, Framed};
async fn main() -> Result<(), Box<dyn Error>> {
// Parse the arguments, bind the TCP socket we'll be listening to, spin up
// our worker threads, and start shipping sockets to those worker threads.
let addr = env::args().nth(1).unwrap_or("127.0.0.1:8080".to_string());
let addr = env::args()
.nth(1)
.unwrap_or_else(|| "127.0.0.1:8080".to_string());
let mut server = TcpListener::bind(&addr).await?;
let mut incoming = server.incoming();
println!("Listening on: {}", addr);