chore(tvix/cli): iter instead of into_iter for references
This CL removes calling into_iter on a reference, as it will not move out it's content into resulting iterator. Change-Id: Ifcc10b7cf33b98453570cbcec3eb82ffaba2ffcb Signed-off-by: Aaqa Ishtyaq <aaqaishtyaq@gmail.com> Reviewed-on: https://cl.tvl.fyi/c/depot/+/8126 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
faffb2a4cb
commit
0dcbf5dfb9
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ impl KnownPaths {
|
||||||
self.insert_path(
|
self.insert_path(
|
||||||
path.to_string(),
|
path.to_string(),
|
||||||
PathKind::Derivation {
|
PathKind::Derivation {
|
||||||
output_names: outputs.into_iter().map(ToString::to_string).collect(),
|
output_names: outputs.iter().map(ToString::to_string).collect(),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue