Skip to content

Commit 9cd8cdb

Browse files
committed
fmt: Fix format error
1 parent 23fc979 commit 9cd8cdb

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • datafusion/functions-aggregate/src

datafusion/functions-aggregate/src/sum.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,12 @@ impl AggregateUDFImpl for Sum {
289289
) -> Result<Box<dyn GroupsAccumulator>> {
290290
macro_rules! helper {
291291
($t:ty, $dt:expr) => {
292-
Ok(Box::new(PrimitiveGroupsAccumulator::<$t, _>::new(
293-
&$dt,
294-
|x, y| *x = x.add_wrapping(y),
295-
).with_starting_value_as_identity()))
292+
Ok(Box::new(
293+
PrimitiveGroupsAccumulator::<$t, _>::new(&$dt, |x, y| {
294+
*x = x.add_wrapping(y)
295+
})
296+
.with_starting_value_as_identity(),
297+
))
296298
};
297299
}
298300
downcast_sum!(args, helper)

0 commit comments

Comments
 (0)