wireguard-control: style tweak

pull/186/head
Jake McGinty 2022-01-18 12:40:01 -06:00
parent 16ac280807
commit 7d5ad8e078
1 changed files with 1 additions and 2 deletions

View File

@ -211,8 +211,7 @@ fn add_del(iface: &InterfaceName, add: bool) -> io::Result<()> {
} else { } else {
RtnlMessage::DelLink(message) RtnlMessage::DelLink(message)
}; };
let result = netlink_request_rtnl(rtnl_message, Some(NLM_F_REQUEST | NLM_F_ACK | extra_flags)); match netlink_request_rtnl(rtnl_message, Some(NLM_F_REQUEST | NLM_F_ACK | extra_flags)) {
match result {
Err(e) if e.kind() != io::ErrorKind::AlreadyExists => Err(e), Err(e) if e.kind() != io::ErrorKind::AlreadyExists => Err(e),
_ => Ok(()), _ => Ok(()),
} }