We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe3ffd9 commit 9d673d5Copy full SHA for 9d673d5
1 file changed
native/core/src/execution/shuffle/spark_unsafe/list.rs
@@ -71,9 +71,7 @@ macro_rules! impl_append_to_builder {
71
// Use bulk copy when data is properly aligned, fall back to
72
// per-element unaligned reads otherwise
73
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
- };
+ let slice = unsafe { std::slice::from_raw_parts(ptr, num_elements) };
77
builder.append_slice(slice);
78
} else {
79
let mut ptr = ptr;
0 commit comments