Skip to content

Commit 5bdfe3f

Browse files
committed
fmt & clippy warns fixed
1 parent 322db73 commit 5bdfe3f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

datafusion/physical-plan/src/joins/hash_join.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,9 @@ mod tests {
13231323

13241324
use arrow::array::{ArrayRef, Date32Array, Int32Array, UInt32Builder, UInt64Builder};
13251325
use arrow::datatypes::{DataType, Field, Schema};
1326-
use datafusion_common::{assert_batches_eq, assert_batches_sorted_eq, assert_contains, ScalarValue};
1326+
use datafusion_common::{
1327+
assert_batches_eq, assert_batches_sorted_eq, assert_contains, ScalarValue,
1328+
};
13271329
use datafusion_execution::config::SessionConfig;
13281330
use datafusion_execution::runtime_env::{RuntimeConfig, RuntimeEnv};
13291331
use datafusion_expr::Operator;

datafusion/physical-plan/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ pub fn unbounded_output(plan: &Arc<dyn ExecutionPlan>) -> bool {
555555
}
556556

557557
#[cfg(test)]
558+
#[allow(clippy::single_component_path_imports)]
558559
use rstest_reuse;
559560

560561
pub mod test;

datafusion/physical-plan/src/test/exec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl BatchIndex {
6161

6262
/// Iterator over batches
6363
#[derive(Debug, Default)]
64-
pub(crate) struct TestStream {
64+
pub struct TestStream {
6565
/// Vector of record batches
6666
data: Vec<RecordBatch>,
6767
/// Index into the data that has been returned so far
@@ -684,7 +684,7 @@ pub struct PanicExec {
684684
}
685685

686686
impl PanicExec {
687-
/// Create new [`PanickingExec`] with a give schema and number of
687+
/// Create new [`PanicExec`] with a give schema and number of
688688
/// partitions, which will each panic immediately.
689689
pub fn new(schema: SchemaRef, n_partitions: usize) -> Self {
690690
Self {
@@ -708,7 +708,7 @@ impl DisplayAs for PanicExec {
708708
) -> std::fmt::Result {
709709
match t {
710710
DisplayFormatType::Default | DisplayFormatType::Verbose => {
711-
write!(f, "PanickingExec",)
711+
write!(f, "PanicExec",)
712712
}
713713
}
714714
}

0 commit comments

Comments
 (0)