diff --git a/actix-server/src/config.rs b/actix-server/src/config.rs index e09a567b5c..65f1988417 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(), }),