Skip to content

Commit 5307066

Browse files
committed
dist: avoid cloning components Vec
1 parent 3e12cfb commit 5307066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dist/manifestation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl Manifestation {
173173
.unwrap_or(DEFAULT_MAX_RETRIES);
174174

175175
info!("downloading component(s)");
176-
for (component, _, url, _) in components.clone() {
176+
for (component, _, url, _) in &components {
177177
(download_cfg.notify_handler)(Notification::DownloadingComponent(
178178
&component.short_name(new_manifest),
179179
&self.target_triple,

0 commit comments

Comments
 (0)