From 404a3b5e8abc0d2148f161323776ee06269955ad Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Sat, 7 Aug 2021 17:10:00 +0200 Subject: [PATCH] Add default for `RequestParts` type param (#148) Same reason as https://github.com/tokio-rs/axum/pull/146 --- src/extract/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extract/mod.rs b/src/extract/mod.rs index 036425e5..e53ba255 100644 --- a/src/extract/mod.rs +++ b/src/extract/mod.rs @@ -358,7 +358,7 @@ pub trait FromRequest: Sized { /// /// Has several convenience methods for getting owned parts of the request. #[derive(Debug)] -pub struct RequestParts { +pub struct RequestParts { method: Option, uri: Option, version: Option,