Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
radu committed Jun 22, 2024
1 parent 642fd72 commit 8614fe9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ fn as_array<'a>(arr: &'a Bound<PyAny>) -> PyResult<&'a [u8]> {
/// Calls the platform's underlying `mlock(2)` implementation.
unsafe fn _mlock(ptr: *mut u8, len: usize) -> bool {
// memsec::mlock(ptr, len)
let r = region::lock(ptr, len).is_ok();
r
region::lock(ptr, len).is_ok()
}

/// Calls the platform's underlying `munlock(2)` implementation.
Expand Down

0 comments on commit 8614fe9

Please sign in to comment.