From 77df8b668d807ea098ca221fb878177e3473f766 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Wed, 28 Sep 2022 00:17:43 -0700 Subject: [PATCH] Fix nightly clippy lints in build/entity.rs --- build/entity.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/entity.rs b/build/entity.rs index c0e45f0..ef36138 100644 --- a/build/entity.rs +++ b/build/entity.rs @@ -270,11 +270,11 @@ pub fn build() -> anyhow::Result { }); let concrete_entity_names = concrete_entities - .iter() - .map(|(k, _)| ident(k)) + .keys() + .map(ident) .collect::>(); - let concrete_entity_structs = concrete_entities.iter().map(|(struct_name, _)| { + let concrete_entity_structs = concrete_entities.keys().map(|struct_name| { let fields = collect_all_fields(struct_name, &entities); let struct_name = ident(struct_name);