1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-01-18 13:01:49 +01:00

Merge pull request #130 from JohnTitor/dont-clone

Remove unnecessary clone usage
This commit is contained in:
Yuki Okushi 2020-04-20 08:37:10 +09:00 committed by GitHub
commit 115ef3fcb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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