From 04a3e59bd5d15e5271c342df0cc9c24c6d868e9e Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 4 Mar 2019 12:41:39 -0800 Subject: [PATCH] update tests --- router/src/path.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 + } +}