Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao committed Dec 23, 2024
1 parent 1c6b0fd commit ab0f69a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,11 @@ impl ParquetInfo {

let has_column_index = metadata
.column_index()
.map(|ci| ci.first().map(|c| c.len() > 0))
.flatten()
.and_then(|ci| ci.first().map(|c| !c.is_empty()))
.unwrap_or(false);
let has_page_index = metadata
.offset_index()
.map(|ci| ci.first().map(|c| c.len() > 0))
.flatten()
.and_then(|ci| ci.first().map(|c| !c.is_empty()))
.unwrap_or(false);

Ok(Self {
Expand Down

0 comments on commit ab0f69a

Please sign in to comment.