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.