Skip to content

Commit fed9a72

Browse files
authored
Remove deprecated extractor_middleware function (#1077)
1 parent 0313c0c commit fed9a72

3 files changed

Lines changed: 3 additions & 18 deletions

File tree

axum/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- **added:** Support resolving host name via `Forwarded` header in `Host`
1111
extractor ([#1078])
12+
- **breaking:** Remove `extractor_middleware` which was previously deprecated.
13+
Use `axum::middleware::from_extractor` instead ([#1077])
1214

1315
[#1078]: https://github.com/tokio-rs/axum/pull/1078
16+
[#1077]: https://github.com/tokio-rs/axum/pull/1077
1417

1518
# 0.5.7 (08. June, 2022)
1619

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)