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