Skip to content

Commit

Permalink
Updating clippy error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanito87 committed Sep 14, 2023
1 parent 8d058c8 commit db914c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wireguard-control/src/backends/kernel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ pub fn get_by_name(name: &InterfaceName) -> Result<Device, io::Error> {
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 {
Expand Down

0 comments on commit db914c2

Please sign in to comment.