Ignore clippy pedantic lints

This commit is contained in:
David Tolnay 2022-05-16 14:42:29 -07:00
parent f071db5000
commit 27866dd600
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
5 changed files with 11 additions and 1 deletions

View File

@ -12,6 +12,8 @@
// readme is computed by subtracting this baseline from the other bench
// functions' time, then dividing by one million (ms -> ns).
#![allow(clippy::needless_pass_by_value)]
#[path = "../tests/fst/mod.rs"]
mod fst;
#[path = "../tests/roaring/mod.rs"]

View File

@ -242,6 +242,7 @@
//! this data structure is straight-line code with no need for branching.
#![no_std]
#![allow(clippy::doc_markdown, clippy::must_use_candidate)]
#[rustfmt::skip]
mod tables;

View File

@ -1,3 +1,5 @@
#![allow(clippy::module_name_repetitions)]
pub fn xid_start_fst() -> fst::Set<&'static [u8]> {
let data = include_bytes!("xid_start.fst");
fst::Set::from(fst::raw::Fst::new(data.as_slice()).unwrap())

View File

@ -1,3 +1,5 @@
#![allow(clippy::unreadable_literal)]
use std::mem::size_of_val;
#[test]
@ -18,6 +20,7 @@ fn test_size() {
#[test]
fn test_trieset_size() {
#[deny(dead_code)]
#[allow(clippy::redundant_static_lifetimes)]
#[path = "trie/trie.rs"]
mod trie;

View File

@ -1,4 +1,6 @@
#[allow(dead_code)]
#![allow(clippy::module_inception)]
#[allow(dead_code, clippy::redundant_static_lifetimes, clippy::unreadable_literal)]
#[rustfmt::skip]
mod trie;