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

fix(clippy): unnested_or_patterns

This commit is contained in:
Gabriele Belluardo 2025-06-17 00:18:19 +02:00
parent 05735887b9
commit d64fcb1826
No known key found for this signature in database
GPG key ID: 21671B8C89CCBF4F

View file

@ -1808,9 +1808,11 @@ fn general_bd_parse(a: &str) -> GeneralBigDecimalParseResult {
// Parse digits, and fold in recoverable errors
let ebd = match ExtendedBigDecimal::extended_parse(a) {
Err(ExtendedParserError::NotNumeric) => return GeneralBigDecimalParseResult::Invalid,
Err(ExtendedParserError::PartialMatch(ebd, _))
| Err(ExtendedParserError::Overflow(ebd))
| Err(ExtendedParserError::Underflow(ebd))
Err(
ExtendedParserError::PartialMatch(ebd, _)
| ExtendedParserError::Overflow(ebd)
| ExtendedParserError::Underflow(ebd),
)
| Ok(ebd) => ebd,
};