enable fn index(web::Path((id, name)): web::Path<(u32, String)>)

This commit is contained in:
rich-murphey 2021-03-12 20:27:56 -06:00
parent 22dcc31193
commit ddf8616a78
1 changed files with 1 additions and 1 deletions

View File

@ -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.