Skip to content

Commit 1d8b10c

Browse files
committed
Fixes clippy
1 parent efdcbae commit 1d8b10c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ps4-1100/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ pub struct Kernel(*const u8);
3939
impl okf::Kernel for Kernel {
4040
#[offset(0x221CCF8)]
4141
const ACCEPT_MTX: StaticMut<Self::Mtx>;
42-
const EINTR: NonZero<c_int> = unsafe { NonZero::new_unchecked(4) };
43-
const EIO: NonZero<c_int> = unsafe { NonZero::new_unchecked(5) };
42+
const EINTR: NonZero<c_int> = NonZero::new(4).unwrap();
43+
const EIO: NonZero<c_int> = NonZero::new(5).unwrap();
4444
const LK_EXCLUSIVE: c_int = 0x80000;
4545
const LK_SHARED: c_int = 0x200000;
4646
const LOOKUP: u64 = 0;

0 commit comments

Comments
 (0)