diff --git a/src/types/path.rs b/src/types/path.rs index 50e2cb510..6d73911d0 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, Debug)] -pub struct Path(T); +pub struct Path(pub T); impl Path { /// Unwrap into inner `T` value.