Fix nightly clippy lints in build/entity.rs

This commit is contained in:
Ryan Johnson 2022-09-28 00:17:43 -07:00
parent 46b62f29a8
commit 77df8b668d

View file

@ -270,11 +270,11 @@ pub fn build() -> anyhow::Result<TokenStream> {
}); });
let concrete_entity_names = concrete_entities let concrete_entity_names = concrete_entities
.iter() .keys()
.map(|(k, _)| ident(k)) .map(ident)
.collect::<Vec<_>>(); .collect::<Vec<_>>();
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 fields = collect_all_fields(struct_name, &entities);
let struct_name = ident(struct_name); let struct_name = ident(struct_name);