Skip to content

Commit

Permalink
Ignore some clippy lints introduced in rust 1.84
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jan 10, 2025
1 parent b76bc55 commit 30300fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions arrow-cast/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ pub fn parse_decimal<T: DecimalType>(

// 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' => {
Expand Down
1 change: 1 addition & 0 deletions arrow-flight/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions parquet/src/arrow/async_reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: AsyncFileReader + Send>(
Expand Down
1 change: 1 addition & 0 deletions parquet/src/column/writer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30300fd

Please sign in to comment.