mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-28 23:38:20 +01:00
Add default for RequestParts
type param (#148)
Same reason as https://github.com/tokio-rs/axum/pull/146
This commit is contained in:
parent
045ec57d92
commit
404a3b5e8a
1 changed files with 1 additions and 1 deletions
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue