Add default for RequestParts type param (#148)

Same reason as https://github.com/tokio-rs/axum/pull/146
This commit is contained in:
David Pedersen 2021-08-07 17:10:00 +02:00 committed by GitHub
parent 045ec57d92
commit 404a3b5e8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -358,7 +358,7 @@ pub trait FromRequest<B = crate::body::Body>: Sized {
///
/// Has several convenience methods for getting owned parts of the request.
#[derive(Debug)]
pub struct RequestParts<B> {
pub struct RequestParts<B = crate::body::Body> {
method: Option<Method>,
uri: Option<Uri>,
version: Option<Version>,