change some statics to constants
This commit is contained in:
parent
2c8d75d655
commit
ec078a033b
13 changed files with 18 additions and 22 deletions
|
|
@ -101,9 +101,8 @@ macro_rules! declare_lint {
|
|||
#[macro_export]
|
||||
macro_rules! lint_array { ($( $lint:expr ),*) => (
|
||||
{
|
||||
#[allow(non_upper_case_globals)]
|
||||
static array: LintArray = &[ $( &$lint ),* ];
|
||||
array
|
||||
static ARRAY: LintArray = &[ $( &$lint ),* ];
|
||||
ARRAY
|
||||
}
|
||||
) }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue