From b5b9db47db23035313548745bea08cf2049f3cf9 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Sat, 7 Aug 2021 16:31:51 +0200 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + src/extract/rejection.rs | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fce9068c..7d3c1187 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/src/extract/rejection.rs b/src/extract/rejection.rs index 64cf80f9..6303fddd 100644 --- a/src/extract/rejection.rs +++ b/src/extract/rejection.rs @@ -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,