1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-03 14:37:45 +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
if hex_output {
if hex_input {
((string_position - 1) - starting_position >= limit)
(string_position - 1) - starting_position >= limit
} else {
false //undecidable without converting
}
} else if hex_input {
((((string_position - 1) - starting_position) * 9) / 8 >= limit)
(((string_position - 1) - starting_position) * 9) / 8 >= limit
} else {
((string_position - 1) - starting_position >= limit)
(string_position - 1) - starting_position >= limit
}
}