[parser] Return error instead of panic (#316)

* [parser] return error instead of panic

* Fix clippy warning

* Fix cargo fmt warning
This commit is contained in:
BohuTANG 2021-06-22 13:05:43 +08:00 committed by GitHub
parent 35ef0eee38
commit 56e50dccd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 7 deletions

View file

@ -32,7 +32,7 @@
//!
//! println!("AST: {:?}", ast);
//! ```
#![warn(clippy::all)]
#![allow(clippy::upper_case_acronyms)]
pub mod ast;
#[macro_use]