From ddf8616a7843caab83d6595c18e62454a5d01e1a Mon Sep 17 00:00:00 2001 From: rich-murphey Date: Fri, 12 Mar 2021 20:27:56 -0600 Subject: [PATCH] enable fn index(web::Path((id, name)): web::Path<(u32, String)>) --- src/types/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/path.rs b/src/types/path.rs index 4ab124d53..97d9880fe 100644 --- a/src/types/path.rs +++ b/src/types/path.rs @@ -46,7 +46,7 @@ use crate::{dev::Payload, error::PathError, FromRequest, HttpRequest}; /// } /// ``` #[derive(PartialEq, Eq, PartialOrd, Ord)] -pub struct Path(T); +pub struct Path(pub T); impl Path { /// Unwrap into inner `T` value.