Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nhusung committed Aug 29, 2024
1 parent ed71b36 commit f7ac788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/arcslab/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl<I, D, const PAGE_SIZE: usize> ArcSlab<I, D, PAGE_SIZE> {
let mut boxed = Box::new(MaybeUninit::<ArcSlab<I, D, PAGE_SIZE>>::uninit());
let ptr = boxed.as_mut_ptr();
let non_null_ptr = NonNull::new(ptr).unwrap();
Box::into_raw(boxed);
let _ = Box::into_raw(boxed); // we need `ptr: *mut ArcSlab<..>` instead of `*mut MaybeUninit<..>`

/// Helper function to create a mutable `MaybeUninit<T>` reference from
/// a raw `T` pointer.
Expand Down

0 comments on commit f7ac788

Please sign in to comment.