From 405959b598d36d122e437a51831d327235b8dd8e Mon Sep 17 00:00:00 2001 From: Xudong Huang Date: Mon, 29 Apr 2024 10:09:05 +0800 Subject: [PATCH] :pencil: allow mut_offset unused --- src/detail/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detail/mod.rs b/src/detail/mod.rs index a8b92dc..6e5fe66 100644 --- a/src/detail/mod.rs +++ b/src/detail/mod.rs @@ -42,6 +42,7 @@ fn align_down(sp: *mut usize) -> *mut usize { // ptr::mut_offset is positive isize only #[inline] +#[allow(dead_code)] fn mut_offset(ptr: *mut T, count: isize) -> *mut T { // use std::mem::size_of; // (ptr as isize + count * (size_of::() as isize)) as *mut T