about summary refs log tree commit diff
path: root/tvix/cli
diff options
context:
space:
mode:
authorAaqa Ishtyaq <aaqaishtyaq@gmail.com>2023-02-16T09·10+0530
committerclbot <clbot@tvl.fyi>2023-02-16T22·42+0000
commit0dcbf5dfb947c9b9c9238db0021655bcebc22798 (patch)
tree4e6d551a81fb3a65bd74f757f97d2ef5412c8dc4 /tvix/cli
parentfaffb2a4cb7482d8c7437809b113066244251084 (diff)
chore(tvix/cli): iter instead of into_iter for references r/5858
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
Diffstat (limited to 'tvix/cli')
-rw-r--r--tvix/cli/src/known_paths.rs2
1 files changed, 1 insertions, 1 deletions
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(),
             },
         );
     }