From f5fc8195f4a7779dec4912d005f2a225fa5de209 Mon Sep 17 00:00:00 2001 From: Janis Date: Thu, 6 Mar 2025 01:12:25 +0100 Subject: [PATCH] fix, lint --- src/ast2/mod.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/ast2/mod.rs b/src/ast2/mod.rs index 0196535..b915613 100644 --- a/src/ast2/mod.rs +++ b/src/ast2/mod.rs @@ -1030,15 +1030,10 @@ impl Ast { } /// 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 i = self.reserve_node_other(); - self.set_tag_data_source_loc( - rvalue, - Tag::ValueToPlaceConversion, - Data::index(rvalue), - loc, - ); + self.set_tag_data_source_loc(index, Tag::ValueToPlaceConversion, Data::index(index), loc); i } @@ -4803,7 +4798,8 @@ pub trait AstVisitorTrait { Tag::ValueToPlaceConversion => self.visit_value_to_place_conversion(ast, idx), Tag::Error => todo!(), Tag::Undefined => todo!(), - _ => todo!(), + Tag::Root => todo!(), + Tag::File => todo!(), } } }