Merge branch 'master' into scope_work

This commit is contained in:
Rob Ede 2024-05-14 07:11:12 +01:00 committed by GitHub
commit a3d6a49f1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 13 additions and 10 deletions

View File

@ -45,7 +45,7 @@ jobs:
toolchain: ${{ matrix.version.version }}
- name: Install just, cargo-hack, cargo-nextest, cargo-ci-cache-clean
uses: taiki-e/install-action@v2.33.16
uses: taiki-e/install-action@v2.33.22
with:
tool: just,cargo-hack,cargo-nextest,cargo-ci-cache-clean
@ -76,7 +76,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
- name: Install cargo-hack
uses: taiki-e/install-action@v2.33.16
uses: taiki-e/install-action@v2.33.22
with:
tool: cargo-hack

View File

@ -56,7 +56,7 @@ jobs:
toolchain: ${{ matrix.version.version }}
- name: Install just, cargo-hack, cargo-nextest, cargo-ci-cache-clean
uses: taiki-e/install-action@v2.33.16
uses: taiki-e/install-action@v2.33.22
with:
tool: just,cargo-hack,cargo-nextest,cargo-ci-cache-clean
@ -105,7 +105,7 @@ jobs:
toolchain: nightly
- name: Install just
uses: taiki-e/install-action@v2.33.16
uses: taiki-e/install-action@v2.33.22
with:
tool: just

View File

@ -23,7 +23,7 @@ jobs:
components: llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2.33.16
uses: taiki-e/install-action@v2.33.22
with:
tool: cargo-llvm-cov

View File

@ -82,7 +82,7 @@ jobs:
toolchain: nightly-2024-04-26
- name: Install cargo-public-api
uses: taiki-e/install-action@v2.33.16
uses: taiki-e/install-action@v2.33.22
with:
tool: cargo-public-api

View File

@ -9,6 +9,7 @@
### Changed
- Minimum supported Rust version (MSRV) is now 1.72.
- Avoid type confusion in rare circumstances
## 4.5.1

View File

@ -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))
}
}));

View File

@ -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))
}
}));