commit | d307657bfcd7909dd874cd6827ee1b7d34653066 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Fri Feb 15 13:32:44 2019 -0800 |
committer | David Tolnay <dtolnay@gmail.com> | Fri Feb 15 13:34:10 2019 -0800 |
tree | 92461e72ed281c7b2df560592ba87b8caa75366a | |
parent | 157c7eb18d02104d3ec33d8dd68044359059a245 [diff] [blame] |
Use syn and proc_macro2 keys in json
diff --git a/codegen/src/parse.rs b/codegen/src/parse.rs index d239c5b..1a2484b 100644 --- a/codegen/src/parse.rs +++ b/codegen/src/parse.rs
@@ -183,7 +183,7 @@ "String" | "u32" | "usize" | "bool" => types::Type::Std(last.ident.to_string()), _ => { if items.get(&last.ident).is_some() { - types::Type::Item(last.ident.to_string()) + types::Type::Syn(last.ident.to_string()) } else { unimplemented!("{}", last.ident.to_string()); }