don't clone types that are copy

found via clippy
This commit is contained in:
Matthias Krüger 2020-01-16 23:15:52 +01:00
parent 4884061838
commit 7fbd30b1ae
15 changed files with 18 additions and 20 deletions

View file

@ -236,7 +236,7 @@ fn encode_work_product_index(
let serialized_products: Vec<_> = work_products
.iter()
.map(|(id, work_product)| SerializedWorkProduct {
id: id.clone(),
id: *id,
work_product: work_product.clone(),
})
.collect();