Remove uneccessary condition in div_ceil

This commit is contained in:
Tobias Decking 2024-06-29 15:08:59 +02:00 committed by GitHub
parent be99243afc
commit 5dece2b2bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2726,7 +2726,7 @@ macro_rules! uint_impl {
pub const fn div_ceil(self, rhs: Self) -> Self {
let d = self / rhs;
let r = self % rhs;
if r > 0 && rhs > 0 {
if r > 0 {
d + 1
} else {
d