clippy: fix for_kv_map

and allow it in the one case where the entry loop is intended, but the
code is not yet implemented fully.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-01-20 10:42:57 +01:00
parent 382f10a0cc
commit f2f81791d1
3 changed files with 14 additions and 14 deletions

View File

@ -39,7 +39,7 @@ fn function_calls() -> Vec<(&'static str, fn() -> String)> {
};
let mut list = Vec::new();
for (store, _) in &config.sections {
for store in config.sections.keys() {
list.push(store.as_str());
}
list.join(", ")