Skip to content

Commit aad42b5

Browse files
Remove unused import detected by nightly rust (#5477)
* remove unused import * remove more unused code * suppress warning on make_fixed_len_byte_array_reader * update fmt * Update parquet/src/arrow/array_reader/mod.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> * add back the lz4_codec --------- Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com>
1 parent 94da02f commit aad42b5

File tree

75 files changed

+52
-184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+52
-184
lines changed

arrow-arith/src/aggregate.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use arrow_array::iterator::ArrayIter;
2222
use arrow_array::*;
2323
use arrow_buffer::{ArrowNativeType, NullBuffer};
2424
use arrow_data::bit_iterator::try_for_each_valid_idx;
25-
use arrow_schema::ArrowError;
2625
use arrow_schema::*;
2726
use std::borrow::BorrowMut;
2827
use std::ops::{BitAnd, BitOr, BitXor};
@@ -729,7 +728,6 @@ where
729728
mod tests {
730729
use super::*;
731730
use arrow_array::types::*;
732-
use arrow_buffer::NullBuffer;
733731
use std::sync::Arc;
734732

735733
#[test]

arrow-array/src/array/dictionary_array.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ use crate::cast::AsArray;
2020
use crate::iterator::ArrayIter;
2121
use crate::types::*;
2222
use crate::{
23-
make_array, Array, ArrayAccessor, ArrayRef, ArrowNativeTypeOp, ArrowPrimitiveType,
24-
PrimitiveArray, StringArray,
23+
make_array, Array, ArrayAccessor, ArrayRef, ArrowNativeTypeOp, PrimitiveArray, StringArray,
2524
};
2625
use arrow_buffer::bit_util::set_bit;
2726
use arrow_buffer::buffer::NullBuffer;
@@ -1007,12 +1006,9 @@ impl<K: ArrowDictionaryKeyType> AnyDictionaryArray for DictionaryArray<K> {
10071006
#[cfg(test)]
10081007
mod tests {
10091008
use super::*;
1010-
use crate::builder::PrimitiveDictionaryBuilder;
10111009
use crate::cast::as_dictionary_array;
1012-
use crate::types::{Int32Type, Int8Type, UInt32Type, UInt8Type};
10131010
use crate::{Int16Array, Int32Array, Int8Array};
10141011
use arrow_buffer::{Buffer, ToByteSlice};
1015-
use std::sync::Arc;
10161012

10171013
#[test]
10181014
fn test_dictionary_array() {

arrow-array/src/array/fixed_size_binary_array.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,6 @@ impl<'a> IntoIterator for &'a FixedSizeBinaryArray {
636636
mod tests {
637637
use crate::RecordBatch;
638638
use arrow_schema::{Field, Schema};
639-
use std::sync::Arc;
640639

641640
use super::*;
642641

arrow-array/src/array/map_array.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,6 @@ mod tests {
441441
use crate::types::UInt32Type;
442442
use crate::{Int32Array, UInt32Array};
443443
use arrow_schema::Fields;
444-
use std::sync::Arc;
445444

446445
use super::*;
447446

arrow-array/src/array/primitive_array.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,9 +1501,8 @@ mod tests {
15011501
use super::*;
15021502
use crate::builder::{Decimal128Builder, Decimal256Builder};
15031503
use crate::cast::downcast_array;
1504-
use crate::{ArrayRef, BooleanArray};
1504+
use crate::BooleanArray;
15051505
use arrow_schema::TimeUnit;
1506-
use std::sync::Arc;
15071506

15081507
#[test]
15091508
fn test_primitive_array_from_vec() {

arrow-array/src/array/run_array.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,17 +654,15 @@ where
654654

655655
#[cfg(test)]
656656
mod tests {
657-
use std::sync::Arc;
658-
659657
use rand::seq::SliceRandom;
660658
use rand::thread_rng;
661659
use rand::Rng;
662660

663661
use super::*;
664662
use crate::builder::PrimitiveRunBuilder;
665663
use crate::cast::AsArray;
666-
use crate::types::{Int16Type, Int32Type, Int8Type, UInt32Type};
667-
use crate::{Array, Int32Array, StringArray};
664+
use crate::types::{Int8Type, UInt32Type};
665+
use crate::{Int32Array, StringArray};
668666

669667
fn build_input_array(size: usize) -> Vec<Option<i32>> {
670668
// The input array is created by shuffling and repeating

arrow-array/src/array/struct_array.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@ mod tests {
464464

465465
use crate::{BooleanArray, Float32Array, Float64Array, Int32Array, Int64Array, StringArray};
466466
use arrow_buffer::ToByteSlice;
467-
use std::sync::Arc;
468467

469468
#[test]
470469
fn test_struct_array_builder() {

arrow-array/src/array/union_array.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,6 @@ mod tests {
511511
use crate::RecordBatch;
512512
use crate::{Float64Array, Int32Array, Int64Array, StringArray};
513513
use arrow_schema::Schema;
514-
use std::sync::Arc;
515514

516515
#[test]
517516
fn test_dense_i32() {

arrow-array/src/builder/boolean_builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ impl Extend<Option<bool>> for BooleanBuilder {
217217
mod tests {
218218
use super::*;
219219
use crate::Array;
220-
use arrow_buffer::Buffer;
221220

222221
#[test]
223222
fn test_boolean_array_builder() {

arrow-array/src/builder/buffer_builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
use crate::array::ArrowPrimitiveType;
1918
pub use arrow_buffer::BufferBuilder;
2019
use half::f16;
2120

0 commit comments

Comments
 (0)