We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d504c51 commit ccb6b63Copy full SHA for ccb6b63
bitcoin/src/amount.rs
@@ -264,7 +264,7 @@ fn parse_signed_to_satoshi(
264
let last_n = unsigned_abs(precision_diff).into();
265
if is_too_precise(s, last_n) {
266
match s.parse::<i64>() {
267
- Ok(v) if v == 0_i64 => return Ok((is_negative, 0)),
+ Ok(0_i64) => return Ok((is_negative, 0)),
268
_ => return Err(ParseAmountError::TooPrecise),
269
}
270
0 commit comments