Removed warnings from transpiler

This commit is contained in:
2026-06-02 23:28:59 +02:00
parent 280e11a95e
commit 8a0eee547d
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
use <std::fs>; use <std::fs>;
use <std::path::Path>;
use <std::path::PathBuf>; use <std::path::PathBuf>;
use <std::process>; use <std::process>;
use <std::time>; use <std::time>;
@@ -8,7 +7,7 @@ use <std::env>;
use <mist_parser::error>; use <mist_parser::error>;
use <crate::modules>; use <crate::modules>;
pub PathBuf build(bool force) { pub PathBuf transpile() {
var start = time::Instant::now(); var start = time::Instant::now();
var root = env::current_dir().expect("Unable to find project root"); var root = env::current_dir().expect("Unable to find project root");
+2 -2
View File
@@ -14,7 +14,7 @@ void main() {
match (args[1].as_str()) { match (args[1].as_str()) {
"run" | "build" | "check" | "r" | "b" | "c" => { "run" | "build" | "check" | "r" | "b" | "c" => {
var root = transpiler::build(false); var root = transpiler::transpile();
println!(""); println!("");
@@ -25,7 +25,7 @@ void main() {
} }
} }
"transpile" | "t" => { "transpile" | "t" => {
transpiler::build(args.get(2).is_some()); transpiler::transpile();
} }
"init" => { "init" => {
init_project(args); init_project(args);