Skip to content

Commit 1bb37b2

Browse files
committed
Merge remote-tracking branch 'apache/main' into arc-buffers
2 parents cf19477 + e42df82 commit 1bb37b2

File tree

77 files changed

+3893
-649
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+3893
-649
lines changed

arrow-arith/src/arithmetic.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ fn get_fixed_point_info(
4343

4444
if required_scale > product_scale {
4545
return Err(ArrowError::ComputeError(format!(
46-
"Required scale {} is greater than product scale {}",
47-
required_scale, product_scale
46+
"Required scale {required_scale} is greater than product scale {product_scale}",
4847
)));
4948
}
5049

@@ -122,7 +121,7 @@ pub fn multiply_fixed_point_checked(
122121
let mut mul = a.wrapping_mul(b);
123122
mul = divide_and_round::<Decimal256Type>(mul, divisor);
124123
mul.to_i128().ok_or_else(|| {
125-
ArrowError::ArithmeticOverflow(format!("Overflow happened on: {:?} * {:?}", a, b))
124+
ArrowError::ArithmeticOverflow(format!("Overflow happened on: {a:?} * {b:?}"))
126125
})
127126
})
128127
.and_then(|a| a.with_precision_and_scale(precision, required_scale))

0 commit comments

Comments
 (0)