Fix nightly clippy warnings (#8199) (#8212)

automerge
This commit is contained in:
mergify[bot]
2020-02-11 08:43:12 -08:00
committed by GitHub
parent 2951ee5b1d
commit cab6917cbd
2 changed files with 4 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ fn slot_key_data_for_gpu<
let keyvec_size = keys_to_slots.len() * size_of::<T>();
keyvec.resize(keyvec_size, 0);
for (i, (k, slots)) in keys_to_slots.iter_mut().enumerate() {
for (i, (k, slots)) in keys_to_slots.iter().enumerate() {
let start = i * size_of::<T>();
let end = start + size_of::<T>();
keyvec[start..end].copy_from_slice(k.as_ref());