Clippy appeasement.
This commit is contained in:
parent
652bc9f1c3
commit
b9fc11b18e
|
@ -1,5 +1,5 @@
|
||||||
blacklisted-names = []
|
blacklisted-names = []
|
||||||
cyclomatic-complexity-threshold = 100
|
cognitive-complexity-threshold = 100
|
||||||
single-char-binding-names-threshold = 15
|
single-char-binding-names-threshold = 15
|
||||||
# I HAVE THE POWER OF OLEG
|
# I HAVE THE POWER OF OLEG
|
||||||
type-complexity-threshold = 999999
|
type-complexity-threshold = 999999
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
use crate::lexer::Token;
|
||||||
use ansi_term::Style;
|
use ansi_term::Style;
|
||||||
use lalrpop_util::ParseError::*;
|
use lalrpop_util::ParseError::*;
|
||||||
use crate::lexer::Token;
|
|
||||||
use proc_macro2::{Ident, TokenStream};
|
use proc_macro2::{Ident, TokenStream};
|
||||||
use quote::{quote, quote_spanned};
|
use quote::{quote, quote_spanned};
|
||||||
|
|
||||||
|
@ -49,10 +49,7 @@ pub fn parse_error(input: &[Token], error: &ParseError) -> TokenStream {
|
||||||
compile_error! { "invalid token" }
|
compile_error! { "invalid token" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
UnrecognizedEOF {
|
UnrecognizedEOF { expected, .. } => {
|
||||||
location: _,
|
|
||||||
expected,
|
|
||||||
} => {
|
|
||||||
let msg = format!(
|
let msg = format!(
|
||||||
"unexpected end of macro; missing {}",
|
"unexpected end of macro; missing {}",
|
||||||
pprint_tokens(&expected)
|
pprint_tokens(&expected)
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// We REALLY don't want to lint the generated parser code.
|
||||||
|
#![allow(clippy::all)]
|
||||||
|
|
||||||
use lalrpop_util::lalrpop_mod;
|
use lalrpop_util::lalrpop_mod;
|
||||||
|
|
||||||
lalrpop_mod!(pub grammar);
|
lalrpop_mod!(pub grammar);
|
||||||
|
|
Loading…
Reference in New Issue