about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-02-26T14·58+0300
committerclbot <clbot@tvl.fyi>2023-03-03T10·57+0000
commit7e9a65dcdb38c247f742a181a94a452df6802fbb (patch)
treed5f99c20ec0bdbe9964a87783485c5a58c84250f /tvix/eval
parentfb4c197b39910d3278cc5859eaffda0b8f6ffe88 (diff)
refactor(tvix/eval): remove useless map call r/5869
Change-Id: Ifb59ef148ea4fab613f2e4efb133c04baafa3a98
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8141
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/value/attrs.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/tvix/eval/src/value/attrs.rs b/tvix/eval/src/value/attrs.rs
index 10d071720219..9b7a683ce3f7 100644
--- a/tvix/eval/src/value/attrs.rs
+++ b/tvix/eval/src/value/attrs.rs
@@ -103,11 +103,7 @@ where
     where
         T: IntoIterator<Item = (K, V)>,
     {
-        NixAttrs(AttrsRep::Im(
-            iter.into_iter()
-                .map(|(k, v)| (k.into(), v.into()))
-                .collect(),
-        ))
+        NixAttrs(AttrsRep::Im(iter.into_iter().collect()))
     }
 }