Fix nightly clippy warnings (#8199)

automerge
This commit is contained in:
Ryo Onodera
2020-02-11 15:48:50 +09:00
committed by GitHub
parent 8d8f28c1d0
commit 46b6cedff4
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());