Skip to content

Commit b312d15

Browse files
committed
Allow from_* functions
Can drop this after rebase on commit 5f16f92 "fix clippy errors in 1.60 (apache#1527)", first released in 12.0.0
1 parent 439f510 commit b312d15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

parquet/src/arrow/schema.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ impl ParquetTypeConverter<'_> {
660660
}
661661
}
662662

663+
#[allow(clippy::wrong_self_convention)]
663664
fn from_int32(&self) -> Result<DataType> {
664665
match (
665666
self.schema.get_basic_info().logical_type(),
@@ -705,6 +706,7 @@ impl ParquetTypeConverter<'_> {
705706
}
706707
}
707708

709+
#[allow(clippy::wrong_self_convention)]
708710
fn from_int96(&self) -> Result<DataType> {
709711
match (
710712
self.schema.get_basic_info().logical_type(),
@@ -735,6 +737,7 @@ impl ParquetTypeConverter<'_> {
735737
}
736738
}
737739

740+
#[allow(clippy::wrong_self_convention)]
738741
fn from_int64(&self) -> Result<DataType> {
739742
match (
740743
self.schema.get_basic_info().logical_type(),
@@ -795,6 +798,7 @@ impl ParquetTypeConverter<'_> {
795798
}
796799
}
797800

801+
#[allow(clippy::wrong_self_convention)]
798802
fn from_fixed_len_byte_array(&self) -> Result<DataType> {
799803
match (
800804
self.schema.get_basic_info().logical_type(),
@@ -833,6 +837,7 @@ impl ParquetTypeConverter<'_> {
833837
)
834838
}
835839

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

0 commit comments

Comments
 (0)