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