Skip to content

Commit

Permalink
chore(lint): stop using Result::cloned() (unstable in 1.56.0
Browse files Browse the repository at this point in the history
  • Loading branch information
laysakura committed May 11, 2022
1 parent 71dddbe commit 5a7b7f3
Showing 1 changed file with 7 additions and 10 deletions.
Expand Up @@ -44,16 +44,13 @@ impl ProjectionSubtask {
let values = self
.exprs
.iter()
.map(|label| {
match label {
ExprLabel::Value(group_by_value_label) => {
aggregated_and_grouping_values.get_group_by_value(group_by_value_label)
}
ExprLabel::Aggr(aggr_label) => {
aggregated_and_grouping_values.get_aggregated_value(aggr_label)
}
}
.cloned()
.map(|label| match label {
ExprLabel::Value(group_by_value_label) => aggregated_and_grouping_values
.get_group_by_value(group_by_value_label)
.cloned(),
ExprLabel::Aggr(aggr_label) => aggregated_and_grouping_values
.get_aggregated_value(aggr_label)
.cloned(),
})
.collect::<Result<Vec<_>>>()?;

Expand Down

0 comments on commit 5a7b7f3

Please sign in to comment.