diff --git a/src/tree_bitmap/allocator.rs b/src/tree_bitmap/allocator.rs index 08e4350..074ddb0 100644 --- a/src/tree_bitmap/allocator.rs +++ b/src/tree_bitmap/allocator.rs @@ -190,10 +190,7 @@ impl BucketVec { (self.spacing - index - 1) as usize, ); if cfg!(debug_assertions) { - ptr::write( - dst_ptr.offset((self.spacing - index - 1) as isize), - mem::zeroed(), - ); + ptr::write_bytes(dst_ptr.offset((self.spacing - index - 1) as isize), 0, 1); } } ret