From b45e0b5d23d0eae6bc3f5934be2a05f306d8c9e8 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 23 Apr 2020 10:52:28 +0600 Subject: [PATCH] clippy --- ntex/src/server/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntex/src/server/config.rs b/ntex/src/server/config.rs index 14662813..0fdad600 100644 --- a/ntex/src/server/config.rs +++ b/ntex/src/server/config.rs @@ -225,7 +225,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(), }),