Skip to content

Commit f12768c

Browse files
committed
Remove deprecated extractor_middleware function (#1077)
1 parent 547fc2c commit f12768c

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
@@ -22,7 +22,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
extractor ([#1078])
2323
- **added:** Implement `IntoResponse` for `Form` ([#1095])
2424
- **change:** axum's MSRV is now 1.56 ([#1098])
25+
- **breaking:** Remove `extractor_middleware` which was previously deprecated.
26+
Use `axum::middleware::from_extractor` instead ([#1077])
2527

28+
[#1077]: https://github.com/tokio-rs/axum/pull/1077
29+
[#1078]: https://github.com/tokio-rs/axum/pull/1078
2630
[#1078]: https://github.com/tokio-rs/axum/pull/1078
2731
[#1095]: https://github.com/tokio-rs/axum/pull/1095
2832
[#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)