fix: correct lifetimes for PartialPathMatch (#2981)

This commit is contained in:
Baptiste 2024-09-17 03:59:49 +02:00 committed by GitHub
parent e136c1fc44
commit ba9604101d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}
}