elichai / log-derive

A procedural macro for auto logging output of functions
https://docs.rs/log-derive
Apache License 2.0
189 stars 12 forks source link

rustc reports error when argument is not used in the "fmt" string. #27

Open chirsz-ever opened 3 years ago

chirsz-ever commented 3 years ago

For example:

#[logfn(DEBUG, fmt="first argument: {:?}")
fn drink(n: i32, m: i32) {}

This will raise an rustc error "argument never used".