mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: correct lifetimes for PartialPathMatch
(#2981)
This commit is contained in:
parent
e136c1fc44
commit
ba9604101d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue