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/src | |
| parent | add nix build and module (diff) | |
update dependencies
Diffstat (limited to 'macros/src')
| -rw-r--r-- | macros/src/macro_types/mod.rs | 2 | ||||
| -rw-r--r-- | macros/src/macro_types/privmsg.rs | 4 |
2 files changed, 3 insertions, 3 deletions
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()?, }) } |
