File tree 5 files changed +20
-20
lines changed
5 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
# 0.5.1
9
9
10
- - ** change:** Make the ` status ` function for rejections generated by the
11
- ` __define_rejection ` and ` __composite_rejection ` macros a ` const ` function
12
- ([ #3168 ] )
10
+ Yanked from crates.io due to unforeseen breaking change, see [ #3190 ] for details.
13
11
14
- [ #3168 ] : https://github.com/tokio-rs/axum/pull/3168
12
+ [ #3190 ] : https://github.com/tokio-rs/axum/pull/3190
15
13
16
14
# 0.5.0
17
15
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ macro_rules! __define_rejection {
54
54
}
55
55
56
56
/// Get the status code used for this rejection.
57
- pub const fn status( & self ) -> http:: StatusCode {
57
+ pub fn status( & self ) -> http:: StatusCode {
58
58
http:: StatusCode :: $status
59
59
}
60
60
}
@@ -111,7 +111,7 @@ macro_rules! __define_rejection {
111
111
}
112
112
113
113
/// Get the status code used for this rejection.
114
- pub const fn status( & self ) -> http:: StatusCode {
114
+ pub fn status( & self ) -> http:: StatusCode {
115
115
http:: StatusCode :: $status
116
116
}
117
117
}
@@ -188,7 +188,7 @@ macro_rules! __composite_rejection {
188
188
}
189
189
190
190
/// Get the status code used for this rejection.
191
- pub const fn status( & self ) -> http:: StatusCode {
191
+ pub fn status( & self ) -> http:: StatusCode {
192
192
match self {
193
193
$(
194
194
Self :: $variant( inner) => inner. status( ) ,
Original file line number Diff line number Diff line change @@ -5,19 +5,22 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ,
6
6
and this project adheres to [ Semantic Versioning] .
7
7
8
- # 0.11.0
8
+ # Unreleased
9
9
10
10
- ** breaking:** Remove unused ` async-stream ` feature, which was accidentally
11
11
introduced as an implicit feature through an optional dependency which was no
12
12
longer being used ([ #3145 ] )
13
13
- ** fixed:** Fix a broken link in the documentation of ` ErasedJson ` ([ #3186 ] )
14
- - ** changed:** Make the ` status ` function of rejections a ` const ` function, such
15
- as ` FormRejection ` , ` QueryRejection ` and ` MultipartRejection ` ([ #3168 ] )
16
14
17
15
[ #3145 ] : https://github.com/tokio-rs/axum/pull/3145
18
- [ #3168 ] : https://github.com/tokio-rs/axum/pull/3168
19
16
[ #3186 ] : https://github.com/tokio-rs/axum/pull/3186
20
17
18
+ # 0.11.0
19
+
20
+ Yanked from crates.io due to unforeseen breaking change, see [ #3190 ] for details.
21
+
22
+ [ #3190 ] : https://github.com/tokio-rs/axum/pull/3190
23
+
21
24
# 0.10.0
22
25
23
26
## since rc.1
Original file line number Diff line number Diff line change @@ -8,21 +8,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
# Unreleased
9
9
10
10
- ** added:** Implement ` From<Bytes> ` for ` Message ` ([ #3273 ] )
11
+ - ** added:** Implement ` OptionalFromRequest ` for ` Json ` ([ #3142 ] )
12
+ - ** added:** Implement ` OptionalFromRequest ` for ` Extension ` ([ #3157 ] )
11
13
- ** changed:** Improved code size / compile time of ` Handler ` implementations ([ #3285 ] )
12
14
13
15
[ #3273 ] : https://github.com/tokio-rs/axum/pull/3273
16
+ [ #3142 ] : https://github.com/tokio-rs/axum/pull/3142
17
+ [ #3157 ] : https://github.com/tokio-rs/axum/pull/3157
14
18
[ #3285 ] : https://github.com/tokio-rs/axum/pull/3285
15
19
16
20
# 0.8.2
17
21
18
- - ** added:** Implement ` OptionalFromRequest ` for ` Json ` ([ #3142 ] )
19
- - ** added:** Implement ` OptionalFromRequest ` for ` Extension ` ([ #3157 ] )
20
- - ** changed:** Make the ` status ` function of rejections a ` const ` function, such
21
- as ` JsonRejection ` , ` QueryRejection ` and ` PathRejection ` ([ #3168 ] )
22
+ Yanked from crates.io due to unforeseen breaking change, see [ #3190 ] for details.
22
23
23
- [ #3142 ] : https://github.com/tokio-rs/axum/pull/3142
24
- [ #3157 ] : https://github.com/tokio-rs/axum/pull/3157
25
- [ #3168 ] : https://github.com/tokio-rs/axum/pull/3168
24
+ [ #3190 ] : https://github.com/tokio-rs/axum/pull/3190
26
25
27
26
# 0.8.1
28
27
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ impl FailedToDeserializePathParams {
429
429
}
430
430
431
431
/// Get the status code used for this rejection.
432
- pub const fn status ( & self ) -> StatusCode {
432
+ pub fn status ( & self ) -> StatusCode {
433
433
match self . 0 . kind {
434
434
ErrorKind :: Message ( _)
435
435
| ErrorKind :: DeserializeError { .. }
@@ -563,7 +563,7 @@ impl InvalidUtf8InPathParam {
563
563
}
564
564
565
565
/// Get the status code used for this rejection.
566
- pub const fn status ( & self ) -> StatusCode {
566
+ pub fn status ( & self ) -> StatusCode {
567
567
StatusCode :: BAD_REQUEST
568
568
}
569
569
}
You can’t perform that action at this time.
0 commit comments