mirror of
https://github.com/tokio-rs/axum.git
synced 2025-04-26 13:56:22 +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:
parent
123b1b3c5e
commit
b5b9db47db
2 changed files with 1 additions and 10 deletions
|
@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## Breaking changes
|
||||
|
||||
- Remove `QueryStringMissing` as it was no longer being used
|
||||
- `extract::extractor_middleware::ExtractorMiddlewareResponseFuture` moved
|
||||
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))
|
||||
|
|
|
@ -39,14 +39,6 @@ define_rejection! {
|
|||
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! {
|
||||
#[status = BAD_REQUEST]
|
||||
#[body = "Failed to parse the request body as JSON"]
|
||||
|
@ -216,7 +208,6 @@ composite_rejection! {
|
|||
/// can fail.
|
||||
pub enum QueryRejection {
|
||||
UriAlreadyExtracted,
|
||||
QueryStringMissing,
|
||||
FailedToDeserializeQueryString,
|
||||
}
|
||||
}
|
||||
|
@ -228,7 +219,6 @@ composite_rejection! {
|
|||
/// can fail.
|
||||
pub enum FormRejection {
|
||||
InvalidFormContentType,
|
||||
QueryStringMissing,
|
||||
FailedToDeserializeQueryString,
|
||||
FailedToBufferBody,
|
||||
BodyAlreadyExtracted,
|
||||
|
|
Loading…
Add table
Reference in a new issue