Skip to content

Commit 50a6646

Browse files
authored
Remove uneccessary condition in div_ceil
1 parent 77a5b51 commit 50a6646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/num/uint_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2726,7 +2726,7 @@ macro_rules! uint_impl {
27262726
pub const fn div_ceil(self, rhs: Self) -> Self {
27272727
let d = self / rhs;
27282728
let r = self % rhs;
2729-
if r > 0 && rhs > 0 {
2729+
if r > 0 {
27302730
d + 1
27312731
} else {
27322732
d

0 commit comments

Comments
 (0)