diff options
Diffstat (limited to 'derive')
| -rw-r--r-- | derive/Cargo.toml | 2 | ||||
| -rw-r--r-- | derive/src/sync/mod.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/derive/Cargo.toml b/derive/Cargo.toml index bc4ed2f..53b910d 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -2,7 +2,7 @@ name = "libquassel-derive" version = "0.1.0" authors = ["Max Audron <audron@cocaine.farm>"] -edition = "2018" +edition = "2021" [lib] proc-macro = true diff --git a/derive/src/sync/mod.rs b/derive/src/sync/mod.rs index 40dea74..2e1df4f 100644 --- a/derive/src/sync/mod.rs +++ b/derive/src/sync/mod.rs @@ -10,8 +10,8 @@ use syn::{ #[derive(Debug)] struct Sync { name: Expr, - token: Token![,], - brace_token: token::Bracket, + _token: Token![,], + _brace_token: token::Bracket, fields: Punctuated<Expr, Token![,]>, } @@ -20,8 +20,8 @@ impl Parse for Sync { let content; Ok(Sync { name: input.parse()?, - token: input.parse()?, - brace_token: bracketed!(content in input), + _token: input.parse()?, + _brace_token: bracketed!(content in input), fields: content.parse_terminated(Expr::parse)?, }) } |
