Skip to content

Commit

Permalink
📝 allow mut_offset unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Xudong-Huang committed Apr 29, 2024
1 parent 25b25e6 commit 405959b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/detail/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(ptr: *mut T, count: isize) -> *mut T {
// use std::mem::size_of;
// (ptr as isize + count * (size_of::<T>() as isize)) as *mut T
Expand Down

0 comments on commit 405959b

Please sign in to comment.