mirror of
https://gitee.com/openharmony/third_party_rust_unicode-ident
synced 2024-11-22 23:19:43 +00:00
Ignore clippy pedantic lints
This commit is contained in:
parent
f071db5000
commit
27866dd600
@ -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"]
|
||||
|
@ -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;
|
||||
|
@ -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())
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user