mirror of
https://github.com/actix/actix-web.git
synced 2024-05-20 01:08:10 +00:00
Merge a173967bfc
into c1a6388614
This commit is contained in:
commit
4a72f512a3
|
@ -9,6 +9,7 @@
|
|||
### Changed
|
||||
|
||||
- Minimum supported Rust version (MSRV) is now 1.72.
|
||||
- Avoid type confusion in rare circumstances
|
||||
|
||||
## 4.5.1
|
||||
|
||||
|
|
|
@ -263,8 +263,9 @@ impl ServiceFactory<ServiceRequest> for AppRoutingFactory {
|
|||
let guards = guards.borrow_mut().take().unwrap_or_default();
|
||||
let factory_fut = factory.new_service(());
|
||||
async move {
|
||||
let service = factory_fut.await?;
|
||||
Ok((path, guards, service))
|
||||
factory_fut
|
||||
.await
|
||||
.map(move |service| (path, guards, service))
|
||||
}
|
||||
}));
|
||||
|
||||
|
|
|
@ -470,8 +470,9 @@ impl ServiceFactory<ServiceRequest> for ScopeFactory {
|
|||
let guards = guards.borrow_mut().take().unwrap_or_default();
|
||||
let factory_fut = factory.new_service(());
|
||||
async move {
|
||||
let service = factory_fut.await?;
|
||||
Ok((path, guards, service))
|
||||
factory_fut
|
||||
.await
|
||||
.map(move |service| (path, guards, service))
|
||||
}
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in a new issue