1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-03 22:47:46 +00:00

refactor/polish ~ fix cargo clippy complaints (unused_parens)

This commit is contained in:
Roy Ivy III 2020-02-07 13:58:17 -06:00
parent c484fb8065
commit 0635c5fe93

View file

@ -23,14 +23,14 @@ fn has_enough_digits(
// -1s are for rounding // -1s are for rounding
if hex_output { if hex_output {
if hex_input { if hex_input {
((string_position - 1) - starting_position >= limit) (string_position - 1) - starting_position >= limit
} else { } else {
false //undecidable without converting false //undecidable without converting
} }
} else if hex_input { } else if hex_input {
((((string_position - 1) - starting_position) * 9) / 8 >= limit) (((string_position - 1) - starting_position) * 9) / 8 >= limit
} else { } else {
((string_position - 1) - starting_position >= limit) (string_position - 1) - starting_position >= limit
} }
} }