Only allows violations to clippy lints violated by peg generated code

pull/10/head
Tpt 6 years ago
parent 4479d14019
commit 232d52901d
  1. 8
      src/rio/ntriples/mod.rs
  2. 8
      src/rio/turtle/mod.rs
  3. 10
      src/sparql/parser.rs

@ -2,7 +2,13 @@
mod grammar { mod grammar {
#![allow(unknown_lints)] #![allow(unknown_lints)]
#![allow(clippy)] #![allow(
suspicious_else_formatting,
len_zero,
single_match,
unit_arg,
naive_bytecount
)]
use rio::utils::unescape_characters; use rio::utils::unescape_characters;
use std::borrow::Cow; use std::borrow::Cow;

@ -2,7 +2,13 @@
mod grammar { mod grammar {
#![allow(unknown_lints)] #![allow(unknown_lints)]
#![allow(clippy)] #![allow(
suspicious_else_formatting,
len_zero,
single_match,
unit_arg,
naive_bytecount
)]
use model::*; use model::*;
use rio::utils::unescape_characters; use rio::utils::unescape_characters;

@ -1,6 +1,14 @@
mod grammar { mod grammar {
#![allow(unknown_lints)] #![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 model::*;
use rio::utils::unescape_unicode_codepoints; use rio::utils::unescape_unicode_codepoints;

Loading…
Cancel
Save