chore: clippy
This commit is contained in:
parent
96b448805d
commit
a59561f796
|
@ -68,10 +68,7 @@ impl Matcher {
|
|||
self.segments.iter().zip(loc_segments.iter())
|
||||
{
|
||||
if let Some(param_name) = segment.strip_prefix(':') {
|
||||
params.insert(
|
||||
param_name.into(),
|
||||
unescape(*loc_segment).into(),
|
||||
);
|
||||
params.insert(param_name.into(), unescape(loc_segment));
|
||||
} else if segment != loc_segment {
|
||||
// if any segment doesn't match and isn't a param, there's no path match
|
||||
return None;
|
||||
|
|
Loading…
Reference in New Issue