diff --git a/src/main.rs b/src/main.rs index 7443252..169a917 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(); } }