Skip to content

Commit c1e859f

Browse files
committed
Avoid unnecessary by_ref
1 parent bd0038d commit c1e859f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rand_core/src/impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn fill_via_chunks<T: Observable>(src: &[T], dest: &mut [u8]) -> (usize, usize)
9494
// This code is valid on all arches, but slower than the above:
9595
let mut i = 0;
9696
let mut iter = dest[..byte_len].chunks_exact_mut(size);
97-
for chunk in iter.by_ref() {
97+
for chunk in &mut iter {
9898
chunk.copy_from_slice(src[i].to_le_bytes().as_ref());
9999
i += 1;
100100
}

0 commit comments

Comments
 (0)