From db914c2ec8ededb3ac25c0df1a657b2570c05241 Mon Sep 17 00:00:00 2001 From: juanito87 Date: Thu, 14 Sep 2023 16:43:40 -0300 Subject: [PATCH] Updating clippy error. --- wireguard-control/src/backends/kernel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireguard-control/src/backends/kernel.rs b/wireguard-control/src/backends/kernel.rs index a0c7e6c..f049957 100644 --- a/wireguard-control/src/backends/kernel.rs +++ b/wireguard-control/src/backends/kernel.rs @@ -366,7 +366,7 @@ pub fn get_by_name(name: &InterfaceName) -> Result { responses.len() ); - let nlas = responses.into_iter().fold(Ok(vec![]), |nlas_res, nlmsg| { + let nlas = responses.into_iter().try_fold(Ok(vec![]), |nlas_res, nlmsg| { let mut nlas = nlas_res?; let mut message = match nlmsg { NetlinkMessage {