Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vcfxb committed Aug 20, 2024
1 parent 273293d commit 587b775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ where

// Use ptr::write_bytes to fill the Vec very fast.
// Safety: This is safe because ptr::null() is defined as having an address of 0 in Rust, and being equivalent
// to `MaybeUninit::<*const T>::zeroed().assume_init()`, and the `AtomicPtr` that underlies our ptr type is
// to `MaybeUninit::<*const T>::zeroed().assume_init()`, and the `AtomicPtr` that underlies our ptr type is
// just an `UnsafeCell`, which is `#[repr(transparent)]`.
unsafe {
ptr::write_bytes::<Ptr<T, C>>(shards.as_mut_ptr(), 0, C::MAX_SHARDS);
Expand Down

0 comments on commit 587b775

Please sign in to comment.