fix: fix issue in macro
This commit is contained in:
parent
9f876cc900
commit
3b51e9fde8
@ -22,7 +22,7 @@ macro_rules! register_diagnostics {
|
|||||||
pub fn error_codes() -> Vec<(&'static str, Option<&'static str>)> {
|
pub fn error_codes() -> Vec<(&'static str, Option<&'static str>)> {
|
||||||
let mut errors: Vec<(&str, Option<&str>)> = vec![
|
let mut errors: Vec<(&str, Option<&str>)> = vec![
|
||||||
$((stringify!($error_code), Some($message)),)+
|
$((stringify!($error_code), Some($message)),)+
|
||||||
$((stringify!($undocumented), None),)+
|
$((stringify!($undocumented), None),)*
|
||||||
];
|
];
|
||||||
errors.sort();
|
errors.sort();
|
||||||
errors
|
errors
|
||||||
|
Loading…
Reference in New Issue
Block a user