1use syn::{
2 parse::{self, Parse, ParseStream},
3 Expr, Token,
4};
5
6use crate::function_like::log;
7
8pub(crate) struct Args {
9 pub(crate) formatter: Expr,
10 _comma: Token![,],
11 pub(crate) log_args: log::Args,
12}
13
14impl Parse for Args {
15 fn parse(input: ParseStream) -> parse::Result<Self> {
16 Ok(Self {
17 formatter: input.parse()?,
18 _comma: input.parse()?,
19 log_args: input.parse()?,
20 })
21 }
22}
23