From 8614fe9acc67bc756f083211c1682e6f6da4c1ab Mon Sep 17 00:00:00 2001 From: radu Date: Sat, 22 Jun 2024 16:37:22 +0300 Subject: [PATCH] clippy --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 25e1d06..b9deae8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -99,8 +99,7 @@ fn as_array<'a>(arr: &'a Bound) -> 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.