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:
Aaqa Ishtyaq 2023-02-16 14:40:48 +05:30 committed by clbot
parent faffb2a4cb
commit 0dcbf5dfb9

View file

@ -123,7 +123,7 @@ impl KnownPaths {
self.insert_path(
path.to_string(),
PathKind::Derivation {
output_names: outputs.into_iter().map(ToString::to_string).collect(),
output_names: outputs.iter().map(ToString::to_string).collect(),
},
);
}