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:
parent
4afeb628a4
commit
2e1c09951e
1 changed files with 2 additions and 5 deletions
|
@ -516,11 +516,8 @@ fn construct_extended_big_decimal<'a>(
|
||||||
|
|
||||||
// pow_with_context "only" supports i64 values. Just overflow/underflow if the value provided
|
// pow_with_context "only" supports i64 values. Just overflow/underflow if the value provided
|
||||||
// is > 2**64 or < 2**-64.
|
// is > 2**64 or < 2**-64.
|
||||||
let exponent = match exponent.to_i64() {
|
let Some(exponent) = exponent.to_i64() else {
|
||||||
Some(exp) => exp,
|
return Err(make_error(exponent.is_positive(), negative));
|
||||||
None => {
|
|
||||||
return Err(make_error(exponent.is_positive(), negative));
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Confusingly, exponent is in base 2 for hex floating point numbers.
|
// Confusingly, exponent is in base 2 for hex floating point numbers.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue