From 925522ea823e7c3f836b2e41a5d2e1d3e7f5c129 Mon Sep 17 00:00:00 2001 From: stelzo Date: Fri, 24 May 2024 16:15:22 +0200 Subject: [PATCH] clippy --- rpcl2/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpcl2/src/lib.rs b/rpcl2/src/lib.rs index af4c01d..107e5c2 100644 --- a/rpcl2/src/lib.rs +++ b/rpcl2/src/lib.rs @@ -1009,8 +1009,7 @@ impl PointData { let mut bytes = [u8::default(); core::mem::size_of::()]; 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 {