commit | b2188a6d485781653fb5059545c639bc2c360082 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Thu May 09 11:42:44 2019 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Thu May 09 11:44:44 2019 -0700 |
tree | e89809bba9f7fd94634bac133d33a3bdf9a719a6 | |
parent | 0a1e222d3296580266c0f932980c305c4c041f7b [diff] [blame] |
Add a codegen error type to avoid unwraps
diff --git a/codegen/src/gen.rs b/codegen/src/gen.rs index db033f9..ba86fbf 100644 --- a/codegen/src/gen.rs +++ b/codegen/src/gen.rs
@@ -1,7 +1,7 @@ use inflections::Inflect; use proc_macro2::{Ident, Span, TokenStream}; use quote::quote; -use syn_codegen::{Data, Features, Definitions, Node}; +use syn_codegen::{Data, Definitions, Features, Node}; pub const TERMINAL_TYPES: &[&str] = &["Span", "Ident"];