Skip to content

Commit cf82eb7

Browse files
committed
fix lint.
1 parent ed3f0e1 commit cf82eb7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

datafusion/core/tests/fuzz_cases/aggregation_fuzzer/context_generator.rs

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

18-
use std::{cmp, sync::Arc, usize};
18+
use std::{cmp, sync::Arc};
1919

2020
use datafusion::{
2121
datasource::MemTable,
@@ -210,9 +210,9 @@ impl GeneratedSessionContextBuilder {
210210
/// The generated params for [`SessionContext`]
211211
#[derive(Debug, Clone, Copy)]
212212
pub struct SessionContextParams {
213-
batch_size: usize,
214-
target_partitions: usize,
215-
skip_partial_params: SkipPartialParams,
213+
pub batch_size: usize,
214+
pub target_partitions: usize,
215+
pub skip_partial_params: SkipPartialParams,
216216
}
217217

218218
/// Partial skipping parameters

datafusion/core/tests/fuzz_cases/aggregation_fuzzer/data_generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl DatasetGenerator {
108108
let sort_exprs = sort_keys
109109
.iter()
110110
.map(|key| {
111-
let col_expr = col(&key, &schema)?;
111+
let col_expr = col(key, schema)?;
112112
Ok(PhysicalSortExpr::new_default(col_expr))
113113
})
114114
.collect::<Result<Vec<_>>>()?;

datafusion/core/tests/fuzz_cases/aggregation_fuzzer/fuzzer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ impl AggregationFuzzTestTask {
253253
e.row_idx,
254254
e.lhs_row,
255255
e.rhs_row,
256-
pretty_format_batches(&task_result).unwrap(),
257-
pretty_format_batches(&expected_result).unwrap(),
256+
pretty_format_batches(task_result).unwrap(),
257+
pretty_format_batches(expected_result).unwrap(),
258258
);
259259

260260
// Then we just panic

test-utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ workspace = true
2929
arrow = { workspace = true }
3030
datafusion-common = { workspace = true, default-features = true }
3131
env_logger = { workspace = true }
32-
rand = { workspace = true }
3332
paste = "1.0.15"
33+
rand = { workspace = true }

0 commit comments

Comments
 (0)