Quellcode durchsuchen

Update crates/assembler/src/ast.rs

Co-authored-by: Bidhan <bidhan619@gmail.com>
Dean 利迪恩 vor 3 Wochen
Ursprung
Commit
898576ca87
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      crates/assembler/src/ast.rs

+ 1 - 1
crates/assembler/src/ast.rs

@@ -93,7 +93,7 @@ impl AST {
         // 1. resolve labels in the intruction nodes for lddw and jump
         // 2. find relocation information
 
-        let program_is_static = !self.nodes.iter_mut().any(|node| matches!(node, ASTNode::Instruction { instruction: inst, .. } if inst.needs_relocation()));
+        let program_is_static = !self.nodes.iter().any(|node| matches!(node, ASTNode::Instruction { instruction: inst, .. } if inst.needs_relocation()));
         let mut relocations = RelDynMap::new();
         let mut dynamic_symbols = DynamicSymbolMap::new();