From b6350162b4c70abb896613e4ebea65ca1661450d Mon Sep 17 00:00:00 2001 From: Max Audron Date: Tue, 6 May 2025 16:17:35 +0200 Subject: update dependencies --- macros/Cargo.toml | 8 +++++--- macros/src/macro_types/mod.rs | 2 +- macros/src/macro_types/privmsg.rs | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) (limited to 'macros') 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 { Ok(Self { msg: input.parse()?, - tok2: input.parse()?, + _tok2: input.parse()?, func: input.parse()?, }) } -- cgit v1.2.3