Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed May 24, 2024
1 parent 09d3bef commit 925522e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rpcl2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,7 @@ impl PointData {
let mut bytes = [u8::default(); core::mem::size_of::<f64>()];
unsafe {
let data_ptr = data.as_ptr().add(offset);
let bytes_ptr = bytes.as_mut_ptr() as *mut u8;
core::ptr::copy_nonoverlapping(data_ptr, bytes_ptr, datatype.size());
core::ptr::copy_nonoverlapping(data_ptr, bytes.as_mut_ptr(), datatype.size());
}

Self {
Expand Down

0 comments on commit 925522e

Please sign in to comment.