On Sat, Nov 2, 2024 at 1:08 AM Boqun Feng boqun.feng@gmail.com wrote:
Hmm.. so I think clippy won't warn for a normal Rust #[test] function:
https://github.com/rust-lang/rust-clippy/pull/7811
That is a very good point. It is a bit surprising that those details are not documented, but we could mimic that behavior.
(Personally, I don't particularly enjoy exceptional/context-dependent cases, unless it is something used everywhere, like `use`ing the prelude that we have).
Cheers, Miguel