This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 5f16f92d1 fix clippy errors in 1.60 (#1527)
5f16f92d1 is described below
commit 5f16f92d1971b3ca36f4bd7d7d6e7ff1336b29ea
Author: Andrew Lamb <[email protected]>
AuthorDate: Fri Apr 8 06:19:56 2022 -0400
fix clippy errors in 1.60 (#1527)
---
arrow/src/ffi.rs | 1 +
parquet/src/arrow/schema.rs | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/arrow/src/ffi.rs b/arrow/src/ffi.rs
index a6ccfa02a..e50756801 100644
--- a/arrow/src/ffi.rs
+++ b/arrow/src/ffi.rs
@@ -295,6 +295,7 @@ impl Drop for FFI_ArrowSchema {
// returns the number of bits that buffer `i` (in the C data interface) is
expected to have.
// This is set by the Arrow specification
+#[allow(clippy::manual_bits)]
fn bit_width(data_type: &DataType, i: usize) -> Result<usize> {
Ok(match (data_type, i) {
// the null buffer is bit sized
diff --git a/parquet/src/arrow/schema.rs b/parquet/src/arrow/schema.rs
index 72061e8ad..049d7c4f4 100644
--- a/parquet/src/arrow/schema.rs
+++ b/parquet/src/arrow/schema.rs
@@ -662,6 +662,7 @@ impl ParquetTypeConverter<'_> {
}
}
+ #[allow(clippy::wrong_self_convention)]
fn from_int32(&self) -> Result<DataType> {
match (
self.schema.get_basic_info().logical_type(),
@@ -707,6 +708,7 @@ impl ParquetTypeConverter<'_> {
}
}
+ #[allow(clippy::wrong_self_convention)]
fn from_int64(&self) -> Result<DataType> {
match (
self.schema.get_basic_info().logical_type(),
@@ -758,6 +760,7 @@ impl ParquetTypeConverter<'_> {
}
}
+ #[allow(clippy::wrong_self_convention)]
fn from_fixed_len_byte_array(&self) -> Result<DataType> {
match (
self.schema.get_basic_info().logical_type(),
@@ -796,6 +799,7 @@ impl ParquetTypeConverter<'_> {
)
}
+ #[allow(clippy::wrong_self_convention)]
fn from_byte_array(&self) -> Result<DataType> {
match (self.schema.get_basic_info().logical_type(),
self.schema.get_basic_info().converted_type()) {
(Some(LogicalType::STRING(_)), _) => Ok(DataType::Utf8),