cleanup
This commit is contained in:
parent
03d10a1907
commit
c5fe70ec9a
|
@ -5,7 +5,6 @@ use std::process::Command;
|
|||
use std::sync::Arc;
|
||||
|
||||
use parking_lot::Mutex;
|
||||
|
||||
use eframe::egui;
|
||||
|
||||
use nac3core::codegen;
|
||||
|
@ -61,7 +60,7 @@ fn compile(code: &String, run_symbol: &String, output_filename: &Path) -> Result
|
|||
};
|
||||
for mut stmt in parser_result {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue