mirror of
https://github.com/powdr-labs/powdr.git
synced 2026-04-20 03:03:25 -04:00
Merge pull request #567 from powdr-labs/fix-unused-self-in-macro-expansion
Fix unused self in macro expansion
This commit is contained in:
@@ -36,7 +36,6 @@ where
|
||||
T: FieldElement,
|
||||
{
|
||||
fn expand_asm(&mut self, file: ASMFile<T>) -> ASMFile<T> {
|
||||
let mut expander = MacroExpander::default();
|
||||
let machines = file
|
||||
.machines
|
||||
.into_iter()
|
||||
@@ -45,13 +44,13 @@ where
|
||||
MachineStatement::InstructionDeclaration(_, _, Instruction { body, .. }) => {
|
||||
match body {
|
||||
InstructionBody::Local(body) => {
|
||||
*body = expander.expand_macros(std::mem::take(body))
|
||||
*body = self.expand_macros(std::mem::take(body))
|
||||
}
|
||||
InstructionBody::CallableRef(..) => {}
|
||||
}
|
||||
}
|
||||
MachineStatement::InlinePil(_, statements) => {
|
||||
*statements = expander.expand_macros(std::mem::take(statements));
|
||||
*statements = self.expand_macros(std::mem::take(statements));
|
||||
}
|
||||
_ => {}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user