From 4a682f8adc4693b8acf4c876e940c9d6b859e0ce Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Tue, 18 Jan 2022 15:19:40 +0900 Subject: [PATCH] wireguard-control: cargo fmt --- wireguard-control/src/backends/kernel.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wireguard-control/src/backends/kernel.rs b/wireguard-control/src/backends/kernel.rs index 662fc73..5204a66 100644 --- a/wireguard-control/src/backends/kernel.rs +++ b/wireguard-control/src/backends/kernel.rs @@ -141,10 +141,11 @@ impl<'a> TryFrom<&'a [WgDeviceAttrs]> for Device { let private_key = get_nla_value!(nlas, WgDeviceAttrs, PrivateKey).map(|key| Key(*key)); let listen_port = get_nla_value!(nlas, WgDeviceAttrs, ListenPort).cloned(); let fwmark = get_nla_value!(nlas, WgDeviceAttrs, Fwmark).cloned(); - let peers = nlas.iter() + let peers = nlas + .iter() .filter_map(|nla| match nla { WgDeviceAttrs::Peers(peers) => Some(peers.clone()), - _ => None + _ => None, }) .flatten() .map(PeerInfo::try_from)