mirror of
https://gitee.com/openharmony/third_party_rust_unicode-ident
synced 2024-11-26 17:21:06 +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
|
// 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"]
|
||||||
|
@ -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;
|
||||||
|
@ -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())
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user