Skip to content

Commit e51023e

Browse files
committed
clippy: use += instead of acc = acc + *v
1 parent 1ad9ca7 commit e51023e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/common/src/utils/aggregate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub(crate) fn scalar_sum(values: &[ScalarValue]) -> Result<ScalarValue> {
146146
for sv in $values {
147147
if let ScalarValue::$VARIANT(Some(v)) = sv {
148148
if has_value {
149-
acc = acc + *v;
149+
acc += *v;
150150
} else {
151151
acc = *v;
152152
has_value = true;

0 commit comments

Comments
 (0)