Some minor improvements and fixes

This commit is contained in:
Lol3rrr
2024-09-30 13:46:12 +02:00
parent a872c5b3db
commit 777248ab3c
7 changed files with 91 additions and 38 deletions

View File

@@ -91,8 +91,10 @@ impl EntityContext {
value: result,
});
} else {
println!("Missing PropInfo for {:?}", fi);
// println!("Missing PropInfo for {:?} = {:?}", fi, result);
}
} else {
// println!("Missing Field Info for {:?} with {:?} = {:?}", field, path, result);
}
}
@@ -114,6 +116,8 @@ impl EntityContext {
impl EntityState {
pub fn get_prop(&self, name: &str) -> Option<&EntityProp> {
self.props.iter().find(|p| p.prop_info.prop_name.as_ref() == name)
self.props
.iter()
.find(|p| p.prop_info.prop_name.as_ref() == name)
}
}