about summary refs log tree commit diff
path: root/src/librustc_incremental
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-01-16 23:15:52 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-01-16 23:48:49 +0100
commit7fbd30b1ae0ce9293302bbf4bfb814f1dc791107 (patch)
tree5499d1a8da34237b9e85748fa9fa5ed903e0e3b4 /src/librustc_incremental
parent48840618382eccb8a799320c8e5d08e3b52f4c42 (diff)
downloadrust-7fbd30b1ae0ce9293302bbf4bfb814f1dc791107.tar.gz
rust-7fbd30b1ae0ce9293302bbf4bfb814f1dc791107.zip
don't clone types that are copy
found via clippy
Diffstat (limited to 'src/librustc_incremental')
-rw-r--r--src/librustc_incremental/persist/save.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_incremental/persist/save.rs b/src/librustc_incremental/persist/save.rs
index 588e639f289..87f39dedd02 100644
--- a/src/librustc_incremental/persist/save.rs
+++ b/src/librustc_incremental/persist/save.rs
@@ -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();