Skip to content

Apache DataFusion SQL Query Engine

ARROW-12116: [Rust] Fix and ignore 1.51 clippy lints

Neville Dipalef292ca01f34c
diff --git a/rust/datafusion/src/lib.rs b/rust/datafusion/src/lib.rs
index 3e1e1e2b12..2733430cbe 100644
--- a/rust/datafusion/src/lib.rs
+++ b/rust/datafusion/src/lib.rs
@@ -18,9 +18,11 @@
// Clippy lints, some should be disabled incrementally
#![allow(
clippy::float_cmp,
+ clippy::from_over_into,
clippy::module_inception,
clippy::new_without_default,
- clippy::type_complexity
+ clippy::type_complexity,
+ clippy::upper_case_acronyms
)]
//! [DataFusion](https://github.com/apache/arrow/tree/master/rust/datafusion)
diff --git a/rust/datafusion/src/logical_plan/builder.rs b/rust/datafusion/src/logical_plan/builder.rs
index aa0380e071..e748872882 100644
--- a/rust/datafusion/src/logical_plan/builder.rs
+++ b/rust/datafusion/src/logical_plan/builder.rs
@@ -303,8 +303,8 @@ impl LogicalPlanBuilder {
Ok(Self::from(&LogicalPlan::Aggregate {
input: Arc::new(self.plan.clone()),
- group_expr: group_expr,
- aggr_expr: aggr_expr,
+ group_expr,
+ aggr_expr,
schema: DFSchemaRef::new(aggr_schema),
}))
}