mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-09 00:00:12 +02:00
Remove QueryStringMissing as it was no longer being used (#125)
* Remove `QueryStringMissing` as it was no longer being used * remove it in a few more places
This commit is contained in:
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## Breaking changes
|
## Breaking changes
|
||||||
|
|
||||||
|
- Remove `QueryStringMissing` as it was no longer being used
|
||||||
- `extract::extractor_middleware::ExtractorMiddlewareResponseFuture` moved
|
- `extract::extractor_middleware::ExtractorMiddlewareResponseFuture` moved
|
||||||
to `extract::extractor_middleware::future::ResponseFuture` ([#133](https://github.com/tokio-rs/axum/pull/133))
|
to `extract::extractor_middleware::future::ResponseFuture` ([#133](https://github.com/tokio-rs/axum/pull/133))
|
||||||
- `routing::BoxRouteFuture` moved to `routing::future::BoxRouteFuture` ([#133](https://github.com/tokio-rs/axum/pull/133))
|
- `routing::BoxRouteFuture` moved to `routing::future::BoxRouteFuture` ([#133](https://github.com/tokio-rs/axum/pull/133))
|
||||||
|
|||||||
@@ -39,14 +39,6 @@ define_rejection! {
|
|||||||
pub struct HeadersAlreadyExtracted;
|
pub struct HeadersAlreadyExtracted;
|
||||||
}
|
}
|
||||||
|
|
||||||
define_rejection! {
|
|
||||||
#[status = BAD_REQUEST]
|
|
||||||
#[body = "Query string was invalid or missing"]
|
|
||||||
#[deprecated(since = "0.1.3", note = "No longer used. See https://github.com/tokio-rs/axum/pull/117")]
|
|
||||||
/// Rejection type for [`Query`](super::Query).
|
|
||||||
pub struct QueryStringMissing;
|
|
||||||
}
|
|
||||||
|
|
||||||
define_rejection! {
|
define_rejection! {
|
||||||
#[status = BAD_REQUEST]
|
#[status = BAD_REQUEST]
|
||||||
#[body = "Failed to parse the request body as JSON"]
|
#[body = "Failed to parse the request body as JSON"]
|
||||||
@@ -216,7 +208,6 @@ composite_rejection! {
|
|||||||
/// can fail.
|
/// can fail.
|
||||||
pub enum QueryRejection {
|
pub enum QueryRejection {
|
||||||
UriAlreadyExtracted,
|
UriAlreadyExtracted,
|
||||||
QueryStringMissing,
|
|
||||||
FailedToDeserializeQueryString,
|
FailedToDeserializeQueryString,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -228,7 +219,6 @@ composite_rejection! {
|
|||||||
/// can fail.
|
/// can fail.
|
||||||
pub enum FormRejection {
|
pub enum FormRejection {
|
||||||
InvalidFormContentType,
|
InvalidFormContentType,
|
||||||
QueryStringMissing,
|
|
||||||
FailedToDeserializeQueryString,
|
FailedToDeserializeQueryString,
|
||||||
FailedToBufferBody,
|
FailedToBufferBody,
|
||||||
BodyAlreadyExtracted,
|
BodyAlreadyExtracted,
|
||||||
|
|||||||
Reference in New Issue
Block a user