Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion arrow-string/src/binary_predicate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ use memchr::memmem::Finder;
use std::iter::zip;

/// A binary based predicate
#[allow(clippy::large_enum_variant)]
#[cfg_attr(
target_arch = "x86_64",
expect(clippy::large_enum_variant)
)]
pub enum BinaryPredicate<'a> {
Contains(Finder<'a>),
StartsWith(&'a [u8]),
Expand Down
1 change: 1 addition & 0 deletions arrow-string/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
html_favicon_url = "https://arrow.apache.org/img/arrow-logo_chevrons_black-txt_transparent-bg.svg"
)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(clippy::allow_attributes)]
#![warn(missing_docs)]

mod binary_like;
Expand Down
5 changes: 4 additions & 1 deletion arrow-string/src/predicate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ use regex::{Regex, RegexBuilder};
use std::iter::zip;

/// A string based predicate
#[allow(clippy::large_enum_variant)]
#[cfg_attr(
target_arch = "x86_64",
expect(clippy::large_enum_variant)
)]
pub(crate) enum Predicate<'a> {
Eq(&'a str),
Contains(Finder<'a>),
Expand Down
Loading