mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-31 06:02:07 +01:00
Merge pull request #130 from JohnTitor/dont-clone
Remove unnecessary clone usage
This commit is contained in:
commit
115ef3fcb3
@ -218,7 +218,7 @@ impl ServiceRuntime {
|
|||||||
// let name = name.to_owned();
|
// let name = name.to_owned();
|
||||||
if let Some(token) = self.names.get(name) {
|
if let Some(token) = self.names.get(name) {
|
||||||
self.services.insert(
|
self.services.insert(
|
||||||
token.clone(),
|
*token,
|
||||||
Box::new(ServiceFactory {
|
Box::new(ServiceFactory {
|
||||||
inner: service.into_factory(),
|
inner: service.into_factory(),
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user