mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-21 00:00:14 +02:00
fix: TypedPath conflicts with OptionalFromRequestParts (#3645)
This commit is contained in:
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
# 0.5.1
|
||||
|
||||
- **fixed:** Fix compilation error when deriving `TypedPath` with
|
||||
`OptionalFromRequestParts` being in scope ([#3645])
|
||||
|
||||
[#3645]: https://github.com/tokio-rs/axum/pull/3645
|
||||
|
||||
# 0.5.0
|
||||
|
||||
*No changes since alpha.1*
|
||||
|
||||
@@ -144,7 +144,8 @@ fn expand_named_fields(
|
||||
parts: &mut ::axum::http::request::Parts,
|
||||
state: &S,
|
||||
) -> ::std::result::Result<Self, Self::Rejection> {
|
||||
::axum::extract::Path::from_request_parts(parts, state)
|
||||
<::axum::extract::Path<#ident> as ::axum::extract::FromRequestParts<S>>
|
||||
::from_request_parts(parts, state)
|
||||
.await
|
||||
.map(|path| path.0)
|
||||
#map_err_rejection
|
||||
|
||||
Reference in New Issue
Block a user