From c0482e25322bcd372a6e5c6fe7c9a51df638e7d0 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Mon, 20 Apr 2020 08:02:08 +0900 Subject: [PATCH] Remove unnecessary clone usage --- actix-server/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-server/src/config.rs b/actix-server/src/config.rs index e09a567b..65f19884 100644 --- a/actix-server/src/config.rs +++ b/actix-server/src/config.rs @@ -218,7 +218,7 @@ impl ServiceRuntime { // let name = name.to_owned(); if let Some(token) = self.names.get(name) { self.services.insert( - token.clone(), + *token, Box::new(ServiceFactory { inner: service.into_factory(), }),