Skip to content

Commit 5f16f92

Browse files
authored
fix clippy errors in 1.60 (#1527)
1 parent 252a983 commit 5f16f92

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

arrow/src/ffi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ impl Drop for FFI_ArrowSchema {
295295

296296
// returns the number of bits that buffer `i` (in the C data interface) is expected to have.
297297
// This is set by the Arrow specification
298+
#[allow(clippy::manual_bits)]
298299
fn bit_width(data_type: &DataType, i: usize) -> Result<usize> {
299300
Ok(match (data_type, i) {
300301
// the null buffer is bit sized

parquet/src/arrow/schema.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ impl ParquetTypeConverter<'_> {
662662
}
663663
}
664664

665+
#[allow(clippy::wrong_self_convention)]
665666
fn from_int32(&self) -> Result<DataType> {
666667
match (
667668
self.schema.get_basic_info().logical_type(),
@@ -707,6 +708,7 @@ impl ParquetTypeConverter<'_> {
707708
}
708709
}
709710

711+
#[allow(clippy::wrong_self_convention)]
710712
fn from_int64(&self) -> Result<DataType> {
711713
match (
712714
self.schema.get_basic_info().logical_type(),
@@ -758,6 +760,7 @@ impl ParquetTypeConverter<'_> {
758760
}
759761
}
760762

763+
#[allow(clippy::wrong_self_convention)]
761764
fn from_fixed_len_byte_array(&self) -> Result<DataType> {
762765
match (
763766
self.schema.get_basic_info().logical_type(),
@@ -796,6 +799,7 @@ impl ParquetTypeConverter<'_> {
796799
)
797800
}
798801

802+
#[allow(clippy::wrong_self_convention)]
799803
fn from_byte_array(&self) -> Result<DataType> {
800804
match (self.schema.get_basic_info().logical_type(), self.schema.get_basic_info().converted_type()) {
801805
(Some(LogicalType::STRING(_)), _) => Ok(DataType::Utf8),

0 commit comments

Comments
 (0)