chore: clippy lints (#467)

* chore: clippy lints
This commit is contained in:
Juan Alvarez
2020-09-29 14:38:49 -05:00
committed by GitHub
parent 9ea4a64a6c
commit 0c69c378fd
27 changed files with 69 additions and 88 deletions
+1 -2
View File
@@ -48,12 +48,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("GreeterServer listening on {}", addr);
let tonic = GreeterServer::new(greeter);
let warp = warp::service(warp::path("hello").map(|| "hello, world!"));
let mut warp = warp::service(warp::path("hello").map(|| "hello, world!"));
Server::bind(&addr)
.serve(make_service_fn(move |_| {
let mut tonic = tonic.clone();
let mut warp = warp.clone();
future::ok::<_, Infallible>(tower::service_fn(
move |req: hyper::Request<hyper::Body>| match req.version() {
Version::HTTP_11 | Version::HTTP_10 => Either::Left(