Clippy appeasement.

This commit is contained in:
Bodil Stokke 2019-10-01 15:00:27 +01:00
parent 652bc9f1c3
commit b9fc11b18e
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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