mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07: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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user