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

Commit

Permalink
Fixed clippy. (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao authored Sep 16, 2021
1 parent ee23796 commit d80090d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit d80090d

Please sign in to comment.