Skip to content

Commit ccb6b63

Browse files
committed
Remove redundant if guard
Clippy emits: warning: redundant guard As suggested remove the redundant guard.
1 parent d504c51 commit ccb6b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/src/amount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ fn parse_signed_to_satoshi(
264264
let last_n = unsigned_abs(precision_diff).into();
265265
if is_too_precise(s, last_n) {
266266
match s.parse::<i64>() {
267-
Ok(v) if v == 0_i64 => return Ok((is_negative, 0)),
267+
Ok(0_i64) => return Ok((is_negative, 0)),
268268
_ => return Err(ParseAmountError::TooPrecise),
269269
}
270270
}

0 commit comments

Comments
 (0)