This is an automated email from the ASF dual-hosted git repository.

viirya pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new c2972c1db Fix clippy (#2771)
c2972c1db is described below

commit c2972c1db521d718f66bf8d6565f034b9a770758
Author: Liang-Chi Hsieh <[email protected]>
AuthorDate: Thu Sep 22 11:47:28 2022 -0700

    Fix clippy (#2771)
---
 arrow-buffer/src/util/bit_chunk_iterator.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arrow-buffer/src/util/bit_chunk_iterator.rs 
b/arrow-buffer/src/util/bit_chunk_iterator.rs
index ba028204d..a739a9694 100644
--- a/arrow-buffer/src/util/bit_chunk_iterator.rs
+++ b/arrow-buffer/src/util/bit_chunk_iterator.rs
@@ -178,7 +178,7 @@ pub type UnalignedBitChunkIterator<'a> = std::iter::Chain<
 fn read_u64(input: &[u8]) -> u64 {
     let len = input.len().min(8);
     let mut buf = [0_u8; 8];
-    (&mut buf[..len]).copy_from_slice(input);
+    buf[..len].copy_from_slice(input);
     u64::from_le_bytes(buf)
 }
 

Reply via email to