diff --git a/router/src/path.rs b/router/src/path.rs index 58666bdc..6e25519e 100644 --- a/router/src/path.rs +++ b/router/src/path.rs @@ -4,7 +4,7 @@ use std::rc::Rc; use serde::de; use crate::de::PathDeserializer; -use crate::ResourcePath; +use crate::{Resource, ResourcePath}; #[derive(Debug, Clone, Copy)] pub(crate) enum PathItem { @@ -202,3 +202,9 @@ impl Index for Path { } } } + +impl Resource for Path { + fn resource_path(&mut self) -> &mut Self { + self + } +}