From 409756368f4de12de1bad5aba3b524bea247a205 Mon Sep 17 00:00:00 2001 From: ibraheemdev Date: Fri, 4 Jun 2021 20:08:30 -0400 Subject: [PATCH] remove unnecessary type annotation --- actix-router/src/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-router/src/path.rs b/actix-router/src/path.rs index e9cdee1f..6e4e2fdf 100644 --- a/actix-router/src/path.rs +++ b/actix-router/src/path.rs @@ -118,8 +118,8 @@ impl Path { name: impl Into>, value: impl Into>, ) { - let value: Cow<'static, str> = value.into(); - self.segments.push((name.into(), PathItem::Static(value))); + self.segments + .push((name.into(), PathItem::Static(value.into()))); } /// Check if there are any matched patterns