From 07a6df43ff16293caa8b81e434d02f4b8133842f Mon Sep 17 00:00:00 2001 From: Erin Date: Sun, 24 Jul 2022 21:56:44 +0200 Subject: [PATCH] CLIPPY --- src/syntax/ast.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index 33803a7..6541acc 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -21,12 +21,7 @@ impl<'a> Display for Expr<'a> { match self { Self::List(list) => write_seq(f, list, "(", ")"), Self::Vector(vec) => write_seq(f, vec, "[", "]"), - Self::Map(map) => write_seq( - f, - map.into_iter().map(|(k, v)| format!("{k} {v}")), - "[", - "]", - ), + Self::Map(map) => write_seq(f, map.iter().map(|(k, v)| format!("{k} {v}")), "[", "]"), Self::Symbol(sym) => write!(f, "{sym}"), Self::Keyword(kw) => write!(f, ":{kw}"), Self::Number(n) => write!(f, "{n}"),