diff --git a/src/main.rs b/src/main.rs index 20d1ba3..71bee3d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,10 +59,10 @@ impl Env { } } fn fmt(&self) { - print!("{{"); let mut i = 0; let len = self.hashmap.len(); if len > 0 { + print!("{{"); for (key, val) in self.hashmap.iter() { print!("{:?} :", key); match val {