Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Fixed minor clippy. #410

Merged
merged 1 commit into from
Sep 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/io/parquet/read/binary/dictionary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ where
)?
}

if offsets.len() == 0 {
if offsets.is_empty() {
// the array is empty and thus we need to push the first offset ourselves.
offsets.push(O::zero());
};
Expand Down
4 changes: 2 additions & 2 deletions src/io/parquet/read/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ pub fn page_iter_to_array<

Binary | Utf8 => binary::iter_to_array::<i32, _, _>(iter, metadata, &data_type),
LargeBinary | LargeUtf8 => binary::iter_to_array::<i64, _, _>(iter, metadata, &data_type),
FixedSizeBinary(size) => Ok(Box::new(fixed_size_binary::iter_to_array(
FixedSizeBinary(_) => Ok(Box::new(fixed_size_binary::iter_to_array(
iter, data_type, metadata,
)?)),

Expand Down Expand Up @@ -320,7 +320,7 @@ pub async fn page_stream_to_array<I: Stream<Item = std::result::Result<DataPage,
LargeBinary | LargeUtf8 => {
binary::stream_to_array::<i64, _, _>(pages, metadata, &data_type).await
}
FixedSizeBinary(size) => Ok(Box::new(
FixedSizeBinary(_) => Ok(Box::new(
fixed_size_binary::stream_to_array(pages, data_type, metadata).await?,
)),
other => Err(ArrowError::NotYetImplemented(format!(
Expand Down