Skip to content

Commit

Permalink
Avoid clone
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Mar 18, 2024
1 parent 95d3833 commit c7b048d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mullvad-daemon/src/tunnel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,7 @@ impl InnerParametersGenerator {
obfuscator: obfuscator_relay,
});

Ok(self.create_wireguard_tunnel_parameters(
endpoint.clone(),
data,
obfuscator_config,
))
Ok(self.create_wireguard_tunnel_parameters(endpoint, data, obfuscator_config))
}
GetRelay::Custom(custom_relay) => {
self.last_generated_relays = None;
Expand Down

0 comments on commit c7b048d

Please sign in to comment.