Hello !
I am writing a little lib providing a macro who generate structure with implemented functions. The functions are not necessarily used, so I add them allow(dead_code).
#[warn(dead_code)]
struct U(u64);
impl U {
#[allow(dead_code)]
pub fn foo() {}
}
The problem is there is no warning even when the structure is absolutely unused. The fact of removing the warning for one of the method implemented remove also the warning for the structure.
Someone would have a solution?
Sorry if my English is bad, is not my native language.