diff options
Diffstat (limited to 'tvix/nix-compat/src/derivation')
-rw-r--r-- | tvix/nix-compat/src/derivation/write.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tvix/nix-compat/src/derivation/write.rs b/tvix/nix-compat/src/derivation/write.rs index 538183ac6513..9a6234424816 100644 --- a/tvix/nix-compat/src/derivation/write.rs +++ b/tvix/nix-compat/src/derivation/write.rs @@ -111,8 +111,7 @@ pub fn write_input_derivations( ) -> Result<(), io::Error> { write_char(writer, BRACKET_OPEN)?; - for (ii, (input_derivation_path, input_derivation)) in input_derivations.into_iter().enumerate() - { + for (ii, (input_derivation_path, input_derivation)) in input_derivations.iter().enumerate() { if ii > 0 { write_char(writer, COMMA)?; } @@ -183,7 +182,7 @@ pub fn write_enviroment( ) -> Result<(), io::Error> { write_char(writer, BRACKET_OPEN)?; - for (i, (k, v)) in environment.into_iter().enumerate() { + for (i, (k, v)) in environment.iter().enumerate() { if i > 0 { write_char(writer, COMMA)?; } |