chore: clippy

This commit is contained in:
Greg Johnston 2024-06-02 15:37:54 -04:00
parent 96b448805d
commit a59561f796
1 changed files with 1 additions and 4 deletions

View File

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