Clippy cleanup

This commit is contained in:
Sunli 2020-06-05 12:44:48 +08:00
parent 37943fa30a
commit 9bda573e28

View File

@ -93,7 +93,7 @@ where
let opts = Arc::new(opts);
warp::any()
.and(warp::method())
.and(warp::query::raw().or(warp::any().map(|| String::new())).unify())
.and(warp::query::raw().or(warp::any().map(String::new)).unify())
.and(warp::header::optional::<String>("content-type"))
.and(warp::body::stream())
.and(warp::any().map(move || opts.clone()))