From d7d5fcb4a3110ce0574368b05ce381569e8c3f0c Mon Sep 17 00:00:00 2001 From: lmittmann Date: Thu, 17 Oct 2024 22:42:06 +0200 Subject: [PATCH] cleanup2 --- crates/ast/src/parser.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ast/src/parser.rs b/crates/ast/src/parser.rs index 3b0f5ae..75a7074 100644 --- a/crates/ast/src/parser.rs +++ b/crates/ast/src/parser.rs @@ -35,8 +35,7 @@ pub fn parse(src: &str) -> Result, Vec>>> { let ast = root() .parse(tokens) .into_result() - .map_err(|errs| errs.into_iter().map(|e| e.into_owned()).collect::>()) - .map_err(|e| e)?; + .map_err(|errs| errs.into_iter().map(|e| e.into_owned()).collect::>())?; Ok(ast) }