diff --git a/src/interpreter.rs b/src/interpreter.rs index 95f1ba9..cf57725 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -14,8 +14,8 @@ pub struct Interpreter { } impl Interpreter { - pub fn new(input: String) -> Interpreter { - Interpreter { + pub fn new(input: String) -> Self { + Self { input, vars: HashMap::new(), pos: 1,