Skip to content

Commit

Permalink
Merge pull request #130 from JohnTitor/dont-clone
Browse files Browse the repository at this point in the history
Remove unnecessary clone usage
  • Loading branch information
JohnTitor authored Apr 19, 2020
2 parents e9e2185 + c0482e2 commit 115ef3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actix-server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}),
Expand Down

0 comments on commit 115ef3f

Please sign in to comment.