From 0dcbf5dfb947c9b9c9238db0021655bcebc22798 Mon Sep 17 00:00:00 2001 From: Aaqa Ishtyaq Date: Thu, 16 Feb 2023 14:40:48 +0530 Subject: 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 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8126 Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/cli/src/known_paths.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvix/cli/src/known_paths.rs b/tvix/cli/src/known_paths.rs index 251366b53c20..fe6d7f118163 100644 --- a/tvix/cli/src/known_paths.rs +++ b/tvix/cli/src/known_paths.rs @@ -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(), }, ); } -- cgit 1.4.1