Skip to content

Commit 044f9b7

Browse files
Fix clippy if_not_else warning
1 parent bb01c4c commit 044f9b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/uu/sort/src/sort.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,19 +1826,19 @@ fn compare_by<'a>(
18261826
// Use locale-aware comparison if feature is enabled and no custom flags are set
18271827
#[cfg(feature = "i18n-collator")]
18281828
{
1829-
if !(settings.ignore_case
1829+
if settings.ignore_case
18301830
|| settings.dictionary_order
1831-
|| settings.ignore_non_printing)
1831+
|| settings.ignore_non_printing
18321832
{
1833-
locale_cmp(a_str, b_str)
1834-
} else {
18351833
custom_str_cmp(
18361834
a_str,
18371835
b_str,
18381836
settings.ignore_non_printing,
18391837
settings.dictionary_order,
18401838
settings.ignore_case,
18411839
)
1840+
} else {
1841+
locale_cmp(a_str, b_str)
18421842
}
18431843
}
18441844
#[cfg(not(feature = "i18n-collator"))]

0 commit comments

Comments
 (0)