1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 19:47:43 +02:00

Remove unnecessary clone usage

This commit is contained in:
Yuki Okushi
2020-04-20 08:02:08 +09:00
parent e9e2185296
commit c0482e2532

View File

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