Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
clippy - refactoring - part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aloise committed Nov 20, 2020
1 parent bd2f718 commit e21ce6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gatekeeper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl TokenCreator {
let mut scopes_map: Map<String, Value> = 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));
}

Expand Down

0 comments on commit e21ce6b

Please sign in to comment.