diff --git a/CHANGES.md b/CHANGES.md index 708d330b5..b69b5a18c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,7 @@ ## Unreleased - 2021-xx-xx ### Added -* Add extractors for `Version`, `Uri` and `Method`. [#2263] +* Add extractors for `Uri` and `Method`. [#2263] * Add extractor for `ConnectionInfo` and `PeerAddr`. [#2263] ### Changed diff --git a/src/extract.rs b/src/extract.rs index 62dc21110..275268aed 100644 --- a/src/extract.rs +++ b/src/extract.rs @@ -244,16 +244,6 @@ impl FromRequest for Uri { } } -impl FromRequest for Version { - type Error = Infallible; - type Future = Ready>; - type Config = (); - - fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future { - ok(req.version()) - } -} - /// Extract the request's method. /// /// ## Example