commit | 157c7eb18d02104d3ec33d8dd68044359059a245 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Fri Feb 15 13:21:48 2019 -0800 |
committer | David Tolnay <dtolnay@gmail.com> | Fri Feb 15 13:34:09 2019 -0800 |
tree | b01fe06536c3533ddab176349b2b5dbcfd8da9a3 | |
parent | f9bb8fff843932eb961a2ed423b0ea1b7d4a10e5 [diff] [blame] |
Remove redundancy about tokens in json
diff --git a/codegen/src/parse.rs b/codegen/src/parse.rs index cd43d60..d239c5b 100644 --- a/codegen/src/parse.rs +++ b/codegen/src/parse.rs
@@ -203,7 +203,7 @@ let content = mac.tts.to_string(); let ty = tokens.get(&content).unwrap().to_string(); - types::Type::Token(types::Token::new(content, ty)) + types::Type::Token(ty) } _ => panic!("{}", quote!(#item).to_string()), }