mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-28 15:30:16 +01:00
Remove needless traits bounds from Router::boxed
(#269)
Turns out these bounds weren't actually needed. I was hoping it would speed up compile times but that isn't the case.
This commit is contained in:
parent
0d2db387a8
commit
20f6c3b509
2 changed files with 4 additions and 4 deletions
|
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
- **fixed:** Fix URI captures matching empty segments. This means requests with
|
- **fixed:** Fix URI captures matching empty segments. This means requests with
|
||||||
URI `/` will no longer be matched by `/:key` ([#264](https://github.com/tokio-rs/axum/pull/264))
|
URI `/` will no longer be matched by `/:key` ([#264](https://github.com/tokio-rs/axum/pull/264))
|
||||||
|
- **fixed:** Remove needless trait bounds from `Router::boxed` ([#264](https://github.com/tokio-rs/axum/pull/264))
|
||||||
|
|
||||||
# 0.2.1 (24. August, 2021)
|
# 0.2.1 (24. August, 2021)
|
||||||
|
|
||||||
|
|
|
@ -257,12 +257,11 @@ impl<S> Router<S> {
|
||||||
pub fn boxed<ReqBody, ResBody>(self) -> Router<BoxRoute<ReqBody, S::Error>>
|
pub fn boxed<ReqBody, ResBody>(self) -> Router<BoxRoute<ReqBody, S::Error>>
|
||||||
where
|
where
|
||||||
S: Service<Request<ReqBody>, Response = Response<ResBody>> + Send + 'static,
|
S: Service<Request<ReqBody>, Response = Response<ResBody>> + Send + 'static,
|
||||||
S::Error: Into<BoxError> + Send + Sync,
|
S::Error: Into<BoxError> + Send,
|
||||||
S::Future: Send,
|
S::Future: Send,
|
||||||
ReqBody: http_body::Body<Data = Bytes> + Send + Sync + 'static,
|
ReqBody: Send + 'static,
|
||||||
ReqBody::Error: Into<BoxError> + Send + Sync + 'static,
|
|
||||||
ResBody: http_body::Body<Data = Bytes> + Send + Sync + 'static,
|
ResBody: http_body::Body<Data = Bytes> + Send + Sync + 'static,
|
||||||
ResBody::Error: Into<BoxError> + Send + Sync + 'static,
|
ResBody::Error: Into<BoxError>,
|
||||||
{
|
{
|
||||||
self.map(|svc| {
|
self.map(|svc| {
|
||||||
ServiceBuilder::new()
|
ServiceBuilder::new()
|
||||||
|
|
Loading…
Reference in a new issue