From 232d52901d5be0de80a13f5b485a7600833cee58 Mon Sep 17 00:00:00 2001 From: Tpt Date: Mon, 24 Sep 2018 22:49:34 +0200 Subject: [PATCH] Only allows violations to clippy lints violated by peg generated code --- src/rio/ntriples/mod.rs | 8 +++++++- src/rio/turtle/mod.rs | 8 +++++++- src/sparql/parser.rs | 10 +++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/rio/ntriples/mod.rs b/src/rio/ntriples/mod.rs index a03bc74d..d81d16c2 100644 --- a/src/rio/ntriples/mod.rs +++ b/src/rio/ntriples/mod.rs @@ -2,7 +2,13 @@ mod grammar { #![allow(unknown_lints)] - #![allow(clippy)] + #![allow( + suspicious_else_formatting, + len_zero, + single_match, + unit_arg, + naive_bytecount + )] use rio::utils::unescape_characters; use std::borrow::Cow; diff --git a/src/rio/turtle/mod.rs b/src/rio/turtle/mod.rs index 1ec74b72..a126e622 100644 --- a/src/rio/turtle/mod.rs +++ b/src/rio/turtle/mod.rs @@ -2,7 +2,13 @@ mod grammar { #![allow(unknown_lints)] - #![allow(clippy)] + #![allow( + suspicious_else_formatting, + len_zero, + single_match, + unit_arg, + naive_bytecount + )] use model::*; use rio::utils::unescape_characters; diff --git a/src/sparql/parser.rs b/src/sparql/parser.rs index 1e40db95..59e078f1 100644 --- a/src/sparql/parser.rs +++ b/src/sparql/parser.rs @@ -1,6 +1,14 @@ mod grammar { #![allow(unknown_lints)] - #![allow(clippy)] + #![allow( + suspicious_else_formatting, + len_zero, + single_match, + unit_arg, + naive_bytecount, + cyclomatic_complexity, + many_single_char_names + )] use model::*; use rio::utils::unescape_unicode_codepoints;