mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Make TypedHeaderRejectionReason #[non_exhaustive] (#665)
* Make `TypedHeaderRejectionReason` `#[non_exhaustive]` Fixes https://github.com/tokio-rs/axum/issues/660 * add changelog pr link
This commit is contained in:
@@ -8,8 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
- **breaking:** Require `Output = ()` on `WebSocketStream::on_upgrade` ([#644])
|
- **breaking:** Require `Output = ()` on `WebSocketStream::on_upgrade` ([#644])
|
||||||
|
- **breaking:** Make `TypedHeaderRejectionReason` `#[non_exhaustive]` ([#665])
|
||||||
|
|
||||||
[#644]: https://github.com/tokio-rs/axum/pull/644
|
[#644]: https://github.com/tokio-rs/axum/pull/644
|
||||||
|
[#665]: https://github.com/tokio-rs/axum/pull/665
|
||||||
|
|
||||||
# 0.4.4 (13. January, 2021)
|
# 0.4.4 (13. January, 2021)
|
||||||
|
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ impl TypedHeaderRejection {
|
|||||||
|
|
||||||
/// Additional information regarding a [`TypedHeaderRejection`](super::TypedHeaderRejection)
|
/// Additional information regarding a [`TypedHeaderRejection`](super::TypedHeaderRejection)
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[non_exhaustive]
|
||||||
pub enum TypedHeaderRejectionReason {
|
pub enum TypedHeaderRejectionReason {
|
||||||
/// The header was missing from the HTTP request
|
/// The header was missing from the HTTP request
|
||||||
Missing,
|
Missing,
|
||||||
|
|||||||
Reference in New Issue
Block a user