From 7d5ad8e078e28328fd8785317432916ea048e4b4 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Tue, 18 Jan 2022 12:40:01 -0600 Subject: [PATCH] wireguard-control: style tweak --- wireguard-control/src/backends/kernel.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wireguard-control/src/backends/kernel.rs b/wireguard-control/src/backends/kernel.rs index c6840ee..042be91 100644 --- a/wireguard-control/src/backends/kernel.rs +++ b/wireguard-control/src/backends/kernel.rs @@ -211,8 +211,7 @@ fn add_del(iface: &InterfaceName, add: bool) -> io::Result<()> { } else { RtnlMessage::DelLink(message) }; - let result = netlink_request_rtnl(rtnl_message, Some(NLM_F_REQUEST | NLM_F_ACK | extra_flags)); - match result { + match netlink_request_rtnl(rtnl_message, Some(NLM_F_REQUEST | NLM_F_ACK | extra_flags)) { Err(e) if e.kind() != io::ErrorKind::AlreadyExists => Err(e), _ => Ok(()), }