mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-23 22:41:30 +11:00
Fix nightly clippy lints in build/entity.rs
This commit is contained in:
parent
46b62f29a8
commit
77df8b668d
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue