Improve compile times (#184)

* Inline `handler::IntoService`

* Inline `BoxResponseBody`

* Add missing debug impl
This commit is contained in:
David Pedersen
2021-08-15 23:01:26 +02:00
committed by GitHub
parent 292d174a73
commit 48afd30491
7 changed files with 191 additions and 257 deletions
+1 -4
View File
@@ -354,10 +354,7 @@ async fn routing_between_services() {
}),
),
)
.route(
"/two",
service::on(MethodFilter::GET, handle.into_service()),
);
.route("/two", service::on(MethodFilter::GET, any(handle)));
let addr = run_in_background(app).await;