From 8b9bf4cc907d0a257e0607bff208e4e6bc2ceec3 Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 10 Apr 2024 18:47:21 +0200 Subject: [PATCH] another bug fix --- src/transpiler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transpiler.rs b/src/transpiler.rs index b97b4db..f2b70ee 100644 --- a/src/transpiler.rs +++ b/src/transpiler.rs @@ -1,4 +1,4 @@ -use crate::lexer::{lex, Token, TokenType}; +use crate::lexer::{lex, TokenType}; use crate::parser::{Parser, AstType}; pub fn auto_strip(input: String) -> String { @@ -32,7 +32,7 @@ pub fn transpile(input: String, indent: u32) -> String { } else if ast.ast_type == AstType::VoidFunctionDeceleration { result += format!("fn {}{} {}", ast.tokens[1].value, ast.tokens[2].value, transpile(ast.tokens[3].value.clone(), indent+1)).as_str(); } else if ast.ast_type == AstType::VariableDeceleration { - let mut o = String::new(); + let _o = String::new(); let mut oy = ast.tokens.clone(); oy.remove(0); if oy.len() > 1 {