Skip to content

Commit c723492

Browse files
committed
remove accidental extra apply
1 parent caa0d67 commit c723492

File tree

1 file changed

+3
-5
lines changed
  • datafusion/expr/src/logical_plan

1 file changed

+3
-5
lines changed

datafusion/expr/src/logical_plan/plan.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,11 +1351,9 @@ impl LogicalPlan {
13511351
&self,
13521352
f: &mut F,
13531353
) -> Result<TreeNodeRecursion> {
1354-
self.apply(&mut |n| {
1355-
f(n)?
1356-
.visit_children(|| self.apply_subqueries(|c| c.apply_with_subqueries(f)))?
1357-
.visit_sibling(|| self.apply_children(|c| c.apply_with_subqueries(f)))
1358-
})
1354+
f(self)?
1355+
.visit_children(|| self.apply_subqueries(|c| c.apply_with_subqueries(f)))?
1356+
.visit_sibling(|| self.apply_children(|c| c.apply_with_subqueries(f)))
13591357
}
13601358

13611359
pub fn transform_with_subqueries<F: Fn(Self) -> Result<Transformed<Self>>>(

0 commit comments

Comments
 (0)