Skip to content

Commit 191047c

Browse files
committed
[utils] fmt
1 parent 8c3cbe5 commit 191047c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

utils/src/vec/array.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,7 @@ impl<T, const N: usize> ArrayVec<T, N> {
433433
// Exactly `this.len` elements are initialized, and `this` is wrapped
434434
// in `ManuallyDrop` so the source won't be double-freed.
435435
unsafe {
436-
ptr::copy_nonoverlapping(
437-
this.items.as_ptr().cast::<T>(),
438-
vec.as_mut_ptr(),
439-
this.len,
440-
);
436+
ptr::copy_nonoverlapping(this.items.as_ptr().cast::<T>(), vec.as_mut_ptr(), this.len);
441437
vec.set_len(this.len);
442438
}
443439

0 commit comments

Comments
 (0)