Skip to content

Commit 9a9aa3a

Browse files
committed
fix clippy
1 parent 7f49c28 commit 9a9aa3a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/array_decoder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl Iterator for NaiveStripeDecoder {
372372
if self.index < self.number_of_rows {
373373
// Handle row selection if present
374374
if self.row_selection.is_some() {
375-
return self.next_with_row_selection();
375+
self.next_with_row_selection()
376376
} else {
377377
// No row selection - decode normally
378378
let record = self

tests/row_selection/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ use std::fs::File;
2121

2222
use arrow::record_batch::RecordBatch;
2323
use arrow::util::pretty;
24-
use futures_util::stream::TryStreamExt;
2524
use orc_rust::arrow_reader::ArrowReaderBuilder;
2625
use orc_rust::projection::ProjectionMask;
2726
use orc_rust::row_selection::{RowSelection, RowSelector};
2827

28+
#[cfg(feature = "async")]
29+
use futures_util::stream::TryStreamExt;
30+
2931
fn basic_path(path: &str) -> String {
3032
let dir = env!("CARGO_MANIFEST_DIR");
3133
format!("{dir}/tests/basic/data/{path}")

0 commit comments

Comments
 (0)