Fix formatting and minor restructuring

Fixed formatting using cargo fmt.
Change some parser structure to reduce code deduplication
This commit is contained in:
Lol3rrr
2024-09-22 20:31:38 +02:00
parent c1e85d77dc
commit 67d33f64c0
6 changed files with 53 additions and 90 deletions

View File

@@ -83,9 +83,7 @@ impl EntityContext {
let result = decoder.decode(bitreader, qf_mapper)?;
if let Some(fi) = field_info {
if let Some(prop_info) = prop_controller
.prop_infos.get(&fi.prop_id)
{
if let Some(prop_info) = prop_controller.prop_infos.get(&fi.prop_id) {
fields.push(EntityProp {
field_info: fi,
prop_info: prop_info.clone(),