Update syn requirement from 1 to 2 for proc_macros

This commit is contained in:
2023-03-27 06:23:06 +00:00
committed by GitHub
parent f10c8251c3
commit b8a8b5fa6f
3 changed files with 17 additions and 8 deletions

View File

@@ -16,4 +16,4 @@ json = "0"
parse_duration = "2"
proc-macro2 = "1"
quote = "1"
syn = { version = "1", features = ["full"] }
syn = { version = "2", features = ["full"] }

View File

@@ -238,7 +238,7 @@ impl Parse for HTTPHeader {
if input.cursor().eof() {
break;
}
match token::Sub::parse(input) {
match token::Minus::parse(input) {
Ok(_) => {}
Err(_) => {
break;
@@ -544,7 +544,7 @@ impl Parse for CheckJsonKeys {
return Ok(Self { keys });
}
let first: LitStr = input.parse()?;
match input.parse::<token::Add>() {
match input.parse::<token::Plus>() {
Ok(_) => match input.parse::<Ident>() {
Ok(ident) => {
keys.push((first, true, Some(ident), None));
@@ -571,7 +571,7 @@ impl Parse for CheckJsonKeys {
break;
}
let key: LitStr = input.parse()?;
match input.parse::<token::Add>() {
match input.parse::<token::Plus>() {
Ok(_) => match input.parse::<Ident>() {
Ok(ident) => {
keys.push((key, true, Some(ident), None));