summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2019-06-12 14:51:54 +0200
committerLinus Färnstrand <linus@mullvad.net>2019-06-12 15:17:07 +0200
commit110f26d6fc8b0ea734c2da086399370e9f05922e (patch)
treeb1d525f208ec68b907c80025a651d82de45c3a5b
parent234dcb641845cfd927535065df15cb8bb83075d3 (diff)
downloadmullvadvpn-110f26d6fc8b0ea734c2da086399370e9f05922e.tar.xz
mullvadvpn-110f26d6fc8b0ea734c2da086399370e9f05922e.zip
Take self by ownership in tiny Copy type
-rw-r--r--talpid-core/src/routing/linux/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/talpid-core/src/routing/linux/mod.rs b/talpid-core/src/routing/linux/mod.rs
index a7adf839fe..77e5c372bd 100644
--- a/talpid-core/src/routing/linux/mod.rs
+++ b/talpid-core/src/routing/linux/mod.rs
@@ -432,7 +432,7 @@ enum IpVersion {
}
impl IpVersion {
- fn to_route_arg(&self) -> &'static str {
+ fn to_route_arg(self) -> &'static str {
match self {
IpVersion::V4 => "-4",
IpVersion::V6 => "-6",