From e21ce6baeabf81ff07aecf68b556dc5c001e0f73 Mon Sep 17 00:00:00 2001 From: Ihor M Date: Fri, 20 Nov 2020 16:03:25 +0100 Subject: [PATCH] clippy - refactoring - part 2 --- src/gatekeeper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gatekeeper.rs b/src/gatekeeper.rs index 3e7b397..4f381c8 100644 --- a/src/gatekeeper.rs +++ b/src/gatekeeper.rs @@ -43,7 +43,7 @@ impl TokenCreator { let mut scopes_map: Map = Map::new(); for (key, values_raw) in scopes { - let values = values_raw.iter().map(|v| Value::String(v.to_string())).collect(); + let values = values_raw.iter().map(|&v| Value::String(v.to_string())).collect(); scopes_map.insert(key.to_string(), Value::Array(values)); }