diff --git a/router/src/matching/mod.rs b/router/src/matching/mod.rs index 63a99879b..8a66be80c 100644 --- a/router/src/matching/mod.rs +++ b/router/src/matching/mod.rs @@ -358,7 +358,7 @@ impl<'a, ParamsIter> PartialPathMatch<'a, ParamsIter> { self.remaining.is_empty() || self.remaining == "/" } - pub fn remaining(&self) -> &str { + pub fn remaining(&self) -> &'a str { self.remaining } @@ -366,7 +366,7 @@ impl<'a, ParamsIter> PartialPathMatch<'a, ParamsIter> { self.params } - pub fn matched(&self) -> &str { + pub fn matched(&self) -> &'a str { self.matched } }