Remove redundant guard

Clippy warns: redundant guard

As suggested, remove the redundant guard.
This commit is contained in:
Tobin C. Harding 2023-10-06 15:59:59 +11:00 committed by Vincenzo Palazzo
parent 4537634e7e
commit 05d3dc5d72
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ fn parse_signed_to_satoshi(
let last_n = unsigned_abs(precision_diff).into();
if is_too_precise(s, last_n) {
match s.parse::<i64>() {
Ok(v) if v == 0_i64 => return Ok((is_negative, 0)),
Ok(0) => return Ok((is_negative, 0)),
_ => return Err(ParseAmountError::TooPrecise),
}
}