diff --git a/arrow-cast/src/parse.rs b/arrow-cast/src/parse.rs index f4c4639c1c08..482d07d8529b 100644 --- a/arrow-cast/src/parse.rs +++ b/arrow-cast/src/parse.rs @@ -864,6 +864,7 @@ pub fn parse_decimal( // Overflow checks are not required if 10^(precision - 1) <= T::MAX holds. // Thus, if we validate the precision correctly, we can skip overflow checks. + #[allow(clippy::question_mark)] while let Some((index, b)) = bs.next() { match b { b'0'..=b'9' => { diff --git a/arrow-flight/src/encode.rs b/arrow-flight/src/encode.rs index ae3475c7c7d7..561c26fa8282 100644 --- a/arrow-flight/src/encode.rs +++ b/arrow-flight/src/encode.rs @@ -1798,6 +1798,7 @@ mod tests { } /// Return size, in memory of flight data + #[allow(clippy::needless_as_bytes)] fn flight_data_size(d: &FlightData) -> usize { let flight_descriptor_size = d .flight_descriptor diff --git a/parquet/src/arrow/async_reader/mod.rs b/parquet/src/arrow/async_reader/mod.rs index 8b315cc9f784..9281a39cecd8 100644 --- a/parquet/src/arrow/async_reader/mod.rs +++ b/parquet/src/arrow/async_reader/mod.rs @@ -724,6 +724,7 @@ struct InMemoryRowGroup<'a> { row_count: usize, } +#[allow(clippy::needless_lifetimes)] impl<'a> InMemoryRowGroup<'a> { /// Fetches the necessary column data into memory async fn fetch( diff --git a/parquet/src/column/writer/mod.rs b/parquet/src/column/writer/mod.rs index 9bd79840f760..f2db7d7448a6 100644 --- a/parquet/src/column/writer/mod.rs +++ b/parquet/src/column/writer/mod.rs @@ -3163,6 +3163,7 @@ mod tests { assert_eq!(&v.unwrap(), "b\u{10ffff}".as_bytes()); } + #[allow(clippy::needless_as_bytes)] #[test] fn test_truncate_utf8() { // No-op