Skip to content

Commit

Permalink
Fix Clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
operutka committed May 17, 2022
1 parent 7424816 commit 42dcb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/format/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ where
Err(err) => err
.raw_os_error()
.map(|code| unsafe { crate::ffw_error_from_posix(code as _) })
.unwrap_or(unsafe { crate::ffw_error_unknown() }) as i64,
.unwrap_or_else(|| unsafe { crate::ffw_error_unknown() }) as i64,
}
}

Expand Down

0 comments on commit 42dcb1a

Please sign in to comment.