Skip to content

Commit

Permalink
fmt & clippy warns fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
korowa committed Nov 4, 2023
1 parent 322db73 commit 5bdfe3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion datafusion/physical-plan/src/joins/hash_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,9 @@ mod tests {

use arrow::array::{ArrayRef, Date32Array, Int32Array, UInt32Builder, UInt64Builder};
use arrow::datatypes::{DataType, Field, Schema};
use datafusion_common::{assert_batches_eq, assert_batches_sorted_eq, assert_contains, ScalarValue};
use datafusion_common::{
assert_batches_eq, assert_batches_sorted_eq, assert_contains, ScalarValue,
};
use datafusion_execution::config::SessionConfig;
use datafusion_execution::runtime_env::{RuntimeConfig, RuntimeEnv};
use datafusion_expr::Operator;
Expand Down
1 change: 1 addition & 0 deletions datafusion/physical-plan/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ pub fn unbounded_output(plan: &Arc<dyn ExecutionPlan>) -> bool {
}

#[cfg(test)]
#[allow(clippy::single_component_path_imports)]
use rstest_reuse;

pub mod test;
6 changes: 3 additions & 3 deletions datafusion/physical-plan/src/test/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl BatchIndex {

/// Iterator over batches
#[derive(Debug, Default)]
pub(crate) struct TestStream {
pub struct TestStream {
/// Vector of record batches
data: Vec<RecordBatch>,
/// Index into the data that has been returned so far
Expand Down Expand Up @@ -684,7 +684,7 @@ pub struct PanicExec {
}

impl PanicExec {
/// Create new [`PanickingExec`] with a give schema and number of
/// Create new [`PanicExec`] with a give schema and number of
/// partitions, which will each panic immediately.
pub fn new(schema: SchemaRef, n_partitions: usize) -> Self {
Self {
Expand All @@ -708,7 +708,7 @@ impl DisplayAs for PanicExec {
) -> std::fmt::Result {
match t {
DisplayFormatType::Default | DisplayFormatType::Verbose => {
write!(f, "PanickingExec",)
write!(f, "PanicExec",)
}
}
}
Expand Down

0 comments on commit 5bdfe3f

Please sign in to comment.