change some statics to constants

This commit is contained in:
Oliver 'ker' Schneider 2015-06-07 19:50:13 +02:00
parent 2c8d75d655
commit ec078a033b
13 changed files with 18 additions and 22 deletions

View file

@ -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
}
) }