From 1b483e496a5856ceda90f639a54c9bfb98622e09 Mon Sep 17 00:00:00 2001 From: Pavel Zavora Date: Thu, 11 Jun 2020 06:55:36 +0200 Subject: [PATCH] chore: fix clippy's redundant clone --- libflux/src/core/semantic/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libflux/src/core/semantic/types.rs b/libflux/src/core/semantic/types.rs index 81cdcce13b..01f8a49468 100644 --- a/libflux/src/core/semantic/types.rs +++ b/libflux/src/core/semantic/types.rs @@ -1144,7 +1144,7 @@ impl Function { // This means they should match. Enforce this condition by inserting // the pipe argument into the required ones with the same key. f.req.insert(fp.k.clone(), fp.v); - g.req.insert(fp.k.clone(), gp.v); + g.req.insert(fp.k, gp.v); } } // F has a pipe argument and g does not.