Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Sep 9, 2024
1 parent 90baa53 commit 10f4170
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions wren-modeling-rs/core/src/logical_plan/analyze/model_anlayze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ impl ModelAnalyzeRule {
Expr::add_column_refs(expr, &mut accum);
});
accum.iter().try_for_each(|expr| {
self.collect_column(
Expr::Column(expr.to_owned().clone()),
buffer,
)
self.collect_column(Expr::Column(expr.to_owned().clone()), buffer)
})?;
Ok(Transformed::no(LogicalPlan::Aggregate(aggregate)))
}
Expand All @@ -93,9 +90,9 @@ impl ModelAnalyzeRule {
}) => {
let mut analysis_mut = analysis.borrow_mut();
let buffer = analysis_mut.required_columns_mut();
outer_ref_columns.iter().try_for_each(|expr| {
self.collect_column(expr.clone(), buffer)
})?;
outer_ref_columns
.iter()
.try_for_each(|expr| self.collect_column(expr.clone(), buffer))?;
Ok(Transformed::no(LogicalPlan::Subquery(Subquery {
subquery,
outer_ref_columns,
Expand Down

0 comments on commit 10f4170

Please sign in to comment.