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)); }