fix, lint

This commit is contained in:
Janis 2025-03-06 01:12:25 +01:00
parent 1be3f29e23
commit f5fc8195f4

View file

@ -1030,15 +1030,10 @@ impl Ast {
} }
/// converts from a value expression to a place expression. /// converts from a value expression to a place expression.
fn push_value_to_place_conversion(&mut self, rvalue: Index) -> Index { fn push_value_to_place_conversion(&mut self, index: Index) -> Index {
let loc = self.get_loc(index); let loc = self.get_loc(index);
let i = self.reserve_node_other(); let i = self.reserve_node_other();
self.set_tag_data_source_loc( self.set_tag_data_source_loc(index, Tag::ValueToPlaceConversion, Data::index(index), loc);
rvalue,
Tag::ValueToPlaceConversion,
Data::index(rvalue),
loc,
);
i i
} }
@ -4803,7 +4798,8 @@ pub trait AstVisitorTrait {
Tag::ValueToPlaceConversion => self.visit_value_to_place_conversion(ast, idx), Tag::ValueToPlaceConversion => self.visit_value_to_place_conversion(ast, idx),
Tag::Error => todo!(), Tag::Error => todo!(),
Tag::Undefined => todo!(), Tag::Undefined => todo!(),
_ => todo!(), Tag::Root => todo!(),
Tag::File => todo!(),
} }
} }
} }