This commit is contained in:
Sébastien Bourdeauducq 2024-09-12 12:25:31 +08:00
parent 03d10a1907
commit c5fe70ec9a
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@ use std::process::Command;
use std::sync::Arc; use std::sync::Arc;
use parking_lot::Mutex; use parking_lot::Mutex;
use eframe::egui; use eframe::egui;
use nac3core::codegen; use nac3core::codegen;
@ -61,7 +60,7 @@ fn compile(code: &String, run_symbol: &String, output_filename: &Path) -> Result
}; };
for mut stmt in parser_result { for mut stmt in parser_result {
if let nac3parser::ast::StmtKind::FunctionDef { name, .. } = &mut stmt.node { if let nac3parser::ast::StmtKind::FunctionDef { name, .. } = &mut stmt.node {
if *name == "run".into() { if name.to_string() == "run" {
*name = run_symbol.as_str().into(); *name = run_symbol.as_str().into();
} }
} }