From c48780021b79359a815f77292a69309a663c82e0 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 20 Jul 2021 07:31:35 +0100 Subject: [PATCH] clippy --- actix-router/src/resource.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/actix-router/src/resource.rs b/actix-router/src/resource.rs index 2538c874..863ed26e 100644 --- a/actix-router/src/resource.rs +++ b/actix-router/src/resource.rs @@ -573,10 +573,9 @@ impl ResourceDef { PatternType::Prefix(ref prefix) => is_strict_prefix(prefix, path), // dynamic prefix - PatternType::Dynamic(ref re, _) if !re.as_str().ends_with("$") => { + PatternType::Dynamic(ref re, _) if !re.as_str().ends_with('$') => { match re.find(path) { // prefix matches exactly - // TODO: im p sure tail segments will hit this now too Some(m) if m.end() == path.len() => true, // prefix matches part @@ -639,10 +638,9 @@ impl ResourceDef { PatternType::Prefix(_) => None, // dynamic prefix - PatternType::Dynamic(ref re, _) if !re.as_str().ends_with("$") => { + PatternType::Dynamic(ref re, _) if !re.as_str().ends_with('$') => { match re.find(path) { // prefix matches exactly - // TODO: im p sure tail segments will hit this now too Some(m) if m.end() == path.len() => Some(m.end()), // prefix matches part