Remove B type param: Follow ups (#1789)

Co-authored-by: Jonas Platte <[email protected]>
Co-authored-by: Michael Scofield <[email protected]>
This commit is contained in:
David Pedersen
2023-03-23 20:24:58 +01:00
co-authored by Jonas Platte Michael Scofield
parent 0d50d17304
commit 2ae0cdf7cf
70 changed files with 428 additions and 527 deletions
+2 -6
View File
@@ -5,11 +5,7 @@
//! ```
use axum::{
body::Body,
handler::HandlerWithoutStateExt,
http::{Request, StatusCode},
routing::get,
Router,
extract::Request, handler::HandlerWithoutStateExt, http::StatusCode, routing::get, Router,
};
use std::net::SocketAddr;
use tower::ServiceExt;
@@ -97,7 +93,7 @@ fn calling_serve_dir_from_a_handler() -> Router {
// call `ServeDir` yourself from a handler
Router::new().nest_service(
"/foo",
get(|request: Request<Body>| async {
get(|request: Request| async {
let service = ServeDir::new("assets");
let result = service.oneshot(request).await;
result