Skip to content

Commit 82593c8

Browse files
committed
Fix formatting in node.rs
1 parent 934a5f7 commit 82593c8

File tree

1 file changed

+2
-6
lines changed
  • core/patina_internal_collections/src

1 file changed

+2
-6
lines changed

core/patina_internal_collections/src/node.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,8 @@ where
217217
// SAFETY: All elements have been initialized in the loop above. We can now safely
218218
// convert the MaybeUninit<Node<D>> slice to a Node<D> slice.
219219
// MaybeUninit<T> has the same memory layout as T, so this cast is valid.
220-
let buffer = unsafe {
221-
slice::from_raw_parts_mut(
222-
uninit_buffer.as_mut_ptr() as *mut Node<D>,
223-
uninit_buffer.len(),
224-
)
225-
};
220+
let buffer =
221+
unsafe { slice::from_raw_parts_mut(uninit_buffer.as_mut_ptr() as *mut Node<D>, uninit_buffer.len()) };
226222

227223
assert!(buffer.len() >= self.len());
228224

0 commit comments

Comments
 (0)