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:
parent
c484fb8065
commit
0635c5fe93
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue