Skip to content

Commit

Permalink
cleanup2
Browse files Browse the repository at this point in the history
  • Loading branch information
lmittmann committed Oct 17, 2024
1 parent ae7af86 commit d7d5fcb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/ast/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ pub fn parse(src: &str) -> Result<ast::Root<'_>, Vec<Rich<'_, Token<'_>>>> {
let ast = root()
.parse(tokens)
.into_result()
.map_err(|errs| errs.into_iter().map(|e| e.into_owned()).collect::<Vec<_>>())
.map_err(|e| e)?;
.map_err(|errs| errs.into_iter().map(|e| e.into_owned()).collect::<Vec<_>>())?;

Ok(ast)
}
Expand Down

0 comments on commit d7d5fcb

Please sign in to comment.