1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use syn::{
    parse::{self, Parse, ParseStream},
    Expr, Token,
};

use crate::function_like::log;

pub(crate) struct Args {
    pub(crate) formatter: Expr,
    _comma: Token![,],
    pub(crate) log_args: log::Args,
}

impl Parse for Args {
    fn parse(input: ParseStream) -> parse::Result<Self> {
        Ok(Self {
            formatter: input.parse()?,
            _comma: input.parse()?,
            log_args: input.parse()?,
        })
    }
}