mirror of https://github.com/fafhrd91/actix-web
enable fn index(web::Path((id, name)): web::Path<(u32, String)>)
This commit is contained in:
parent
22dcc31193
commit
ddf8616a78
|
@ -46,7 +46,7 @@ use crate::{dev::Payload, error::PathError, FromRequest, HttpRequest};
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[derive(PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(PartialEq, Eq, PartialOrd, Ord)]
|
||||||
pub struct Path<T>(T);
|
pub struct Path<T>(pub T);
|
||||||
|
|
||||||
impl<T> Path<T> {
|
impl<T> Path<T> {
|
||||||
/// Unwrap into inner `T` value.
|
/// Unwrap into inner `T` value.
|
||||||
|
|
Loading…
Reference in New Issue