diff --git a/benches/xid.rs b/benches/xid.rs index 408579f..040c4e1 100644 --- a/benches/xid.rs +++ b/benches/xid.rs @@ -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"] diff --git a/src/lib.rs b/src/lib.rs index 0c82c19..67aaf5a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; diff --git a/tests/fst/mod.rs b/tests/fst/mod.rs index 6cd965e..5195efb 100644 --- a/tests/fst/mod.rs +++ b/tests/fst/mod.rs @@ -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()) diff --git a/tests/static_size.rs b/tests/static_size.rs index aea88db..b8622d7 100644 --- a/tests/static_size.rs +++ b/tests/static_size.rs @@ -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; diff --git a/tests/trie/mod.rs b/tests/trie/mod.rs index 466f17a..3e31c5c 100644 --- a/tests/trie/mod.rs +++ b/tests/trie/mod.rs @@ -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;