mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-06-06 05:49:01 +08:00
Update syn requirement from 1 to 2 for proc_macros
This commit is contained in:
@@ -16,4 +16,4 @@ json = "0"
|
||||
parse_duration = "2"
|
||||
proc-macro2 = "1"
|
||||
quote = "1"
|
||||
syn = { version = "1", features = ["full"] }
|
||||
syn = { version = "2", features = ["full"] }
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user