Some simplifications

This commit is contained in:
David Pedersen
2021-06-01 08:32:58 +02:00
parent 8582c6fd1f
commit 093ad3622e
4 changed files with 7 additions and 19 deletions
+1 -1
View File
@@ -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))