diff options
| author | Max Audron <audron@cocaine.farm> | 2025-05-06 16:17:35 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-05-06 16:19:30 +0200 |
| commit | b6350162b4c70abb896613e4ebea65ca1661450d (patch) | |
| tree | 2e55e0477b4d2f7a646a97f92ee1362db769f75e /macros | |
| parent | add nix build and module (diff) | |
update dependencies
Diffstat (limited to 'macros')
| -rw-r--r-- | macros/Cargo.toml | 8 | ||||
| -rw-r--r-- | macros/src/macro_types/mod.rs | 2 | ||||
| -rw-r--r-- | macros/src/macro_types/privmsg.rs | 4 |
3 files changed, 8 insertions, 6 deletions
diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 59cfd73..cdba18d 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -13,16 +13,18 @@ documentation = "https://docs.rs/catinator_macros" proc-macro = true [dependencies] -syn = { version = "1", features = ["parsing"] } +syn = { version = "2", features = ["full"] } proc-macro2 = "1" quote = "1" [dev-dependencies] tokio = "1" futures = "0" -irc = { version = "0.15", features = ["json", "tls-rust"], default_features = false } +irc = { version = "1", features = [ + "json", + "tls-rust", +], default-features = false } tracing = "0" anyhow = "1" regex = "1" catinator = { path = "../" } - diff --git a/macros/src/macro_types/mod.rs b/macros/src/macro_types/mod.rs index ac8e678..988f8fe 100644 --- a/macros/src/macro_types/mod.rs +++ b/macros/src/macro_types/mod.rs @@ -334,7 +334,7 @@ impl Parse for Function { if input.peek2(Token![::]) { Ok(Function::Path(input.parse()?)) } else if input.peek2(Token![.]) { - Ok(Function::Expr(input.parse_terminated(Ident::parse)?)) + Ok(Function::Expr(input.parse_terminated(Ident::parse, Token![.])?)) } else { Err(input.error("did not find path or dotted")) } diff --git a/macros/src/macro_types/privmsg.rs b/macros/src/macro_types/privmsg.rs index 4cc1d5e..aec7c04 100644 --- a/macros/src/macro_types/privmsg.rs +++ b/macros/src/macro_types/privmsg.rs @@ -5,7 +5,7 @@ use syn::{ pub struct Item { pub msg: Expr, - pub tok2: Token![,], + pub _tok2: Token![,], pub func: Expr, } @@ -13,7 +13,7 @@ impl Parse for Item { fn parse(input: ParseStream) -> syn::Result<Self> { Ok(Self { msg: input.parse()?, - tok2: input.parse()?, + _tok2: input.parse()?, func: input.parse()?, }) } |
