Skip to content

Commit 56ddabc

Browse files
committed
Remove deprecated extractor_middleware function (#1077)
1 parent 7e794e9 commit 56ddabc

3 files changed

Lines changed: 4 additions & 18 deletions

File tree

axum/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
extractor ([#1078])
3131
- **added:** Implement `IntoResponse` for `Form` ([#1095])
3232
- **change:** axum's MSRV is now 1.56 ([#1098])
33+
- **breaking:** Remove `extractor_middleware` which was previously deprecated.
34+
Use `axum::middleware::from_extractor` instead ([#1077])
3335

36+
[#1077]: https://github.com/tokio-rs/axum/pull/1077
37+
[#1078]: https://github.com/tokio-rs/axum/pull/1078
3438
[#1078]: https://github.com/tokio-rs/axum/pull/1078
3539
[#1095]: https://github.com/tokio-rs/axum/pull/1095
3640
[#1098]: https://github.com/tokio-rs/axum/pull/1098

axum/src/extract/extractor_middleware.rs

Lines changed: 0 additions & 16 deletions
This file was deleted.

axum/src/extract/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use http::header;
44
use rejection::*;
55

66
pub mod connect_info;
7-
pub mod extractor_middleware;
87
pub mod path;
98
pub mod rejection;
109

@@ -24,7 +23,6 @@ pub use axum_core::extract::{FromRequest, RequestParts};
2423
pub use self::{
2524
connect_info::ConnectInfo,
2625
content_length_limit::ContentLengthLimit,
27-
extractor_middleware::extractor_middleware,
2826
host::Host,
2927
path::Path,
3028
raw_query::RawQuery,

0 commit comments

Comments
 (0)