mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-12 14:51:16 -03:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user