Skip to content

Commit 5c4d92d

Browse files
author
Jiayu Liu
committed
fix clippy
1 parent a0b7526 commit 5c4d92d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ballista/rust/core/src/serde/logical_plan/from_proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ impl TryFrom<protobuf::WindowFrameBound> for WindowFrameBound {
12901290
"Received a WindowFrameBound message with unknown WindowFrameBoundType {}",
12911291
bound.window_frame_bound_type
12921292
))
1293-
})?.into();
1293+
})?;
12941294
match bound_type {
12951295
protobuf::WindowFrameBoundType::CurrentRow => {
12961296
Ok(WindowFrameBound::CurrentRow)

datafusion/src/physical_plan/planner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl DefaultPhysicalPlanner {
164164
Ok(Arc::new(WindowAggExec::try_new(
165165
window_expr,
166166
input_exec.clone(),
167-
input_schema.clone(),
167+
input_schema,
168168
)?))
169169
}
170170
LogicalPlan::Aggregate {

datafusion/src/physical_plan/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl ExecutionPlan for WindowAggExec {
163163
1 => Ok(Arc::new(WindowAggExec::try_new(
164164
self.window_expr.clone(),
165165
children[0].clone(),
166-
children[0].schema().clone(),
166+
children[0].schema(),
167167
)?)),
168168
_ => Err(DataFusionError::Internal(
169169
"WindowAggExec wrong number of children".to_owned(),

datafusion/src/sql/planner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
678678
select_exprs: &[Expr],
679679
) -> Result<(LogicalPlan, Vec<Expr>)> {
680680
let plan = LogicalPlanBuilder::from(input)
681-
.window(window_exprs.clone())?
681+
.window(window_exprs)?
682682
.build()?;
683683
let select_exprs = select_exprs
684684
.iter()

0 commit comments

Comments
 (0)