From 7e9a65dcdb38c247f742a181a94a452df6802fbb Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 26 Feb 2023 17:58:41 +0300 Subject: refactor(tvix/eval): remove useless map call Change-Id: Ifb59ef148ea4fab613f2e4efb133c04baafa3a98 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8141 Autosubmit: tazjin Tested-by: BuildkiteCI Reviewed-by: flokli --- tvix/eval/src/value/attrs.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tvix') 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, { - NixAttrs(AttrsRep::Im( - iter.into_iter() - .map(|(k, v)| (k.into(), v.into())) - .collect(), - )) + NixAttrs(AttrsRep::Im(iter.into_iter().collect())) } } -- cgit 1.4.1