mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #5842 from cakebaker/uucore_fix_clippy_warning
uucore: fix clippy warning from if_not_else lint
This commit is contained in:
commit
e340d8177e
1 changed files with 3 additions and 3 deletions
|
@ -146,10 +146,10 @@ impl Formatter for UnsignedInt {
|
|||
// We also need to take into account that 0 should not be 00
|
||||
// Since this is an unsigned int, we do not need to take the minus
|
||||
// sign into account.
|
||||
if x != 0 {
|
||||
format!("0{x:o}")
|
||||
} else {
|
||||
if x == 0 {
|
||||
format!("{x:o}")
|
||||
} else {
|
||||
format!("0{x:o}")
|
||||
}
|
||||
}
|
||||
UnsignedIntVariant::Hexadecimal(Case::Lowercase, Prefix::No) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue