Skip to content

Commit 9d673d5

Browse files
committed
style: cargo fmt
1 parent fe3ffd9 commit 9d673d5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • native/core/src/execution/shuffle/spark_unsafe

native/core/src/execution/shuffle/spark_unsafe/list.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ macro_rules! impl_append_to_builder {
7171
// Use bulk copy when data is properly aligned, fall back to
7272
// per-element unaligned reads otherwise
7373
if (ptr as usize).is_multiple_of(std::mem::align_of::<$element_type>()) {
74-
let slice = unsafe {
75-
std::slice::from_raw_parts(ptr, num_elements)
76-
};
74+
let slice = unsafe { std::slice::from_raw_parts(ptr, num_elements) };
7775
builder.append_slice(slice);
7876
} else {
7977
let mut ptr = ptr;

0 commit comments

Comments
 (0)