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(), }),