1
0
Fork 0
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 ()

* Remove `QueryStringMissing` as it was no longer being used

* remove it in a few more places
This commit is contained in:
David Pedersen 2021-08-07 16:31:51 +02:00 committed by GitHub
parent 123b1b3c5e
commit b5b9db47db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View file

@ -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))

View file

@ -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,