Update codegen.rs

This commit is contained in:
Sunli 2022-04-28 12:28:44 +08:00
parent b11cfc8f8d
commit bfc471ca52

View File

@ -26,7 +26,7 @@ struct GraphQLParser;
.parse::<proc_macro2::TokenStream>() .parse::<proc_macro2::TokenStream>()
.unwrap(); .unwrap();
let tokens = pest_generator::derive_parser(input.into(), true); let tokens = pest_generator::derive_parser(input, true);
let current = let current =
String::from_utf8(fs::read("./src/parse/generated.rs").unwrap_or_default()).unwrap(); String::from_utf8(fs::read("./src/parse/generated.rs").unwrap_or_default()).unwrap();