diff --git a/ctru-rs/src/linear.rs b/ctru-rs/src/linear.rs index 507cacd..8a68de6 100644 --- a/ctru-rs/src/linear.rs +++ b/ctru-rs/src/linear.rs @@ -37,6 +37,6 @@ unsafe impl Allocator for LinearAllocator { } unsafe fn deallocate(&self, ptr: std::ptr::NonNull, _layout: std::alloc::Layout) { - unsafe { ctru_sys::linearFree(ptr.as_ptr() as *mut _) }; + ctru_sys::linearFree(ptr.as_ptr() as *mut _); } }