There are some warnings which are mostly about good coding style, e.g.
- unnecessary parentheses around assigned value
- variable does not need to be mutable
During development I often move code around, temporarily comment things out and cut&paste expressions, which causes these warnings. I don't want to pay attention to the style of unfinished/experimental code that I may decide not to keep.
Is it possible to disable these warnings in debug mode only? e.g. via Cargo config?
I don't want to permanently disable such warnings, and I'd rather avoid manually adding and removing #[allow()]
directives when switching between debug/release modes.