This commit is contained in:
2022-07-11 09:35:19 +00:00
committed by GitHub
parent 194989b3a3
commit 8f0f4ed914
3 changed files with 82 additions and 5 deletions

View File

@@ -526,6 +526,9 @@ struct CheckJsonKeys {
impl Parse for CheckJsonKeys {
fn parse(input: syn::parse::ParseStream) -> syn::Result<Self> {
let mut keys = Vec::new();
if input.cursor().eof() {
return Ok(Self { keys });
}
let first: LitStr = input.parse()?;
match input.parse::<token::Add>() {
Ok(_) => match input.parse::<Ident>() {