mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-24 00:00:16 +02:00
Add default for RequestParts type param (#148)
Same reason as https://github.com/tokio-rs/axum/pull/146
This commit is contained in:
+1
-1
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user