From d2ecdfc997ae7a9923d2e05d11c70b5da2830476 Mon Sep 17 00:00:00 2001 From: mrMiiao <90341146+mrMiiao@users.noreply.github.com> Date: Thu, 11 Aug 2022 16:48:10 +0300 Subject: [PATCH] Update interpreter.rs --- src/interpreter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interpreter.rs b/src/interpreter.rs index dd16ea7..1c89cf4 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,