mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
Some simplifications
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ impl<R> RouteBuilder<R> {
|
||||
R: Service<Request<Body>, Response = Response<B>, Error = Infallible> + Send + 'static,
|
||||
R::Future: Send,
|
||||
// TODO(david): do we still need default here
|
||||
B: Default + From<String> + 'static,
|
||||
B: From<String> + 'static,
|
||||
{
|
||||
let svc = ServiceBuilder::new()
|
||||
.layer(BufferLayer::new(1024))
|
||||
|
||||
Reference in New Issue
Block a user