Update interpreter.rs

This commit is contained in:
mrMiiao 2022-08-11 16:48:10 +03:00 committed by GitHub
parent cad4ec224b
commit d2ecdfc997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,