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

View File

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

View File

@ -1,3 +1,5 @@
#![allow(clippy::module_name_repetitions)]
pub fn xid_start_fst() -> fst::Set<&'static [u8]> { pub fn xid_start_fst() -> fst::Set<&'static [u8]> {
let data = include_bytes!("xid_start.fst"); let data = include_bytes!("xid_start.fst");
fst::Set::from(fst::raw::Fst::new(data.as_slice()).unwrap()) 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; use std::mem::size_of_val;
#[test] #[test]
@ -18,6 +20,7 @@ fn test_size() {
#[test] #[test]
fn test_trieset_size() { fn test_trieset_size() {
#[deny(dead_code)] #[deny(dead_code)]
#[allow(clippy::redundant_static_lifetimes)]
#[path = "trie/trie.rs"] #[path = "trie/trie.rs"]
mod trie; 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] #[rustfmt::skip]
mod trie; mod trie;