From 0682a84eadc383e1d5747576298c9160737e0e99 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Thu, 18 Apr 2019 22:20:40 +0200 Subject: Label is redundant in EnvItem::Skip --- dhall_core/src/context.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dhall_core') diff --git a/dhall_core/src/context.rs b/dhall_core/src/context.rs index 91eec69..55bfff5 100644 --- a/dhall_core/src/context.rs +++ b/dhall_core/src/context.rs @@ -41,11 +41,13 @@ impl Context { }) } - pub fn map U>(&self, f: F) -> Context { + pub fn map U>(&self, f: F) -> Context { Context( self.0 .iter() - .map(|(k, v)| ((*k).clone(), v.iter().map(&f).collect())) + .map(|(k, vs)| { + ((*k).clone(), vs.iter().map(|v| f(k, v)).collect()) + }) .collect(), ) } -- cgit v1.2.3