1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

fix(clippy): manual_let_else

This commit is contained in:
Gabriele Belluardo 2025-06-16 23:58:19 +02:00
parent 4afeb628a4
commit 2e1c09951e
No known key found for this signature in database
GPG key ID: 21671B8C89CCBF4F

View file

@ -516,11 +516,8 @@ fn construct_extended_big_decimal<'a>(
// pow_with_context "only" supports i64 values. Just overflow/underflow if the value provided
// is > 2**64 or < 2**-64.
let exponent = match exponent.to_i64() {
Some(exp) => exp,
None => {
return Err(make_error(exponent.is_positive(), negative));
}
let Some(exponent) = exponent.to_i64() else {
return Err(make_error(exponent.is_positive(), negative));
};
// Confusingly, exponent is in base 2 for hex floating point numbers.