Skip to content

Commit 7ece71c

Browse files
committed
Enable more lints
1 parent 747e72a commit 7ece71c

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ jobs:
247247
run: |
248248
export CARGO_HOME="/github/home/.cargo"
249249
export CARGO_TARGET_DIR="/github/home/target"
250-
cargo clippy --features test_common --features prettyprint --features=async --all-targets --workspace -- -D warnings -A clippy::redundant_field_names
250+
cargo clippy --features test_common --features prettyprint --features=async --all-targets --workspace -- -D warnings
251251
252252
check_benches:
253253
name: Check Benchmarks (but don't run them)

arrow/src/ipc/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub mod writer;
2727
#[allow(clippy::extra_unused_lifetimes)]
2828
#[allow(clippy::redundant_static_lifetimes)]
2929
#[allow(clippy::redundant_field_names)]
30+
#[allow(non_camel_case_types)]
3031
pub mod gen;
3132

3233
pub use self::gen::File::*;

arrow/src/json/reader.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -735,14 +735,14 @@ impl Decoder {
735735
}
736736

737737
#[inline(always)]
738-
fn list_array_string_array_builder<DICT_TY>(
738+
fn list_array_string_array_builder<DT>(
739739
&self,
740740
data_type: &DataType,
741741
col_name: &str,
742742
rows: &[Value],
743743
) -> Result<ArrayRef>
744744
where
745-
DICT_TY: ArrowPrimitiveType + ArrowDictionaryKeyType,
745+
DT: ArrowPrimitiveType + ArrowDictionaryKeyType,
746746
{
747747
let mut builder: Box<dyn ArrayBuilder> = match data_type {
748748
DataType::Utf8 => {
@@ -751,7 +751,7 @@ impl Decoder {
751751
}
752752
DataType::Dictionary(_, _) => {
753753
let values_builder =
754-
self.build_string_dictionary_builder::<DICT_TY>(rows.len() * 5)?;
754+
self.build_string_dictionary_builder::<DT>(rows.len() * 5)?;
755755
Box::new(ListBuilder::new(values_builder))
756756
}
757757
e => {
@@ -813,7 +813,7 @@ impl Decoder {
813813
builder.append(true)?;
814814
}
815815
DataType::Dictionary(_, _) => {
816-
let builder = builder.as_any_mut().downcast_mut::<ListBuilder<StringDictionaryBuilder<DICT_TY>>>().ok_or_else(||ArrowError::JsonError(
816+
let builder = builder.as_any_mut().downcast_mut::<ListBuilder<StringDictionaryBuilder<DT>>>().ok_or_else(||ArrowError::JsonError(
817817
"Cast failed for ListBuilder<StringDictionaryBuilder> during nested data parsing".to_string(),
818818
))?;
819819
for val in vals {

arrow/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,7 @@
128128
#![cfg_attr(feature = "avx512", feature(repr_simd))]
129129
#![cfg_attr(feature = "avx512", feature(avx512_target_feature))]
130130
#![allow(dead_code)]
131-
#![allow(non_camel_case_types)]
132131
#![deny(clippy::redundant_clone)]
133-
#![allow(
134-
// upper_case_acronyms lint was introduced in Rust 1.51.
135-
// It is triggered in the ffi module, and ipc::gen, which we have no control over
136-
clippy::upper_case_acronyms,
137-
)]
138132
#![warn(missing_debug_implementations)]
139133

140134
pub mod alloc;

0 commit comments

Comments
 (0)