Skip to content

Commit e62c9fa

Browse files
committed
Resolve clippy lint
1 parent 55c0f40 commit e62c9fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasm-pkg-core/src/lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ mod sys {
606606
}
607607

608608
pub(super) fn error_contended(err: &Error) -> bool {
609-
err.raw_os_error().map_or(false, |x| x == libc::EWOULDBLOCK)
609+
err.raw_os_error() == Some(libc::EWOULDBLOCK)
610610
}
611611

612612
pub(super) fn error_unsupported(err: &Error) -> bool {

0 commit comments

Comments
 (0)