Silence non_upper_case_globals for log categories

For some reason r-a shows this diagnostic even though we suppress it
in Cargo.toml (I still need to create a bug report).

Making these upper case would be noisy at the call sites, and it
probably doesn't help since we don't think of these identifiers
as global variables (we never access their fields directly).
Silence the r-a warning for now.

See #12156
This commit is contained in:
Johannes Altmanninger
2025-12-18 11:33:39 +01:00
parent 074ab45049
commit 03a3a3b52f

View File

@@ -24,6 +24,7 @@ macro_rules! declare_category {
(
($var:ident, $name:literal, $description:literal, $enabled:expr)
) => {
#[allow(non_upper_case_globals)]
pub static $var: Category = Category {
name: L!($name),
description: localizable_string!($description),