diff options
author | Vincent Ambo <mail@tazj.in> | 2023-02-26T14·58+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-03-03T10·57+0000 |
commit | 7e9a65dcdb38c247f742a181a94a452df6802fbb (patch) | |
tree | d5f99c20ec0bdbe9964a87783485c5a58c84250f /tvix/eval | |
parent | fb4c197b39910d3278cc5859eaffda0b8f6ffe88 (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.rs | 6 |
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())) } } |