mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
util.rs: fix Yoda condition
This commit is contained in:
parent
8460b37b6a
commit
ba1c5d495f
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ fn wcsfilecmp_leading_digits(a: &wstr, b: &wstr) -> (Ordering, usize, usize) {
|
|||
// first differing digit.
|
||||
//
|
||||
// If the numbers have the same length, that's the value.
|
||||
if let Ordering::Equal = ret {
|
||||
if ret == Ordering::Equal {
|
||||
// Comparing the string value is the same as numerical
|
||||
// for wchar_t digits!
|
||||
if ac > bc {
|
||||
|
|
Loading…
Reference in a new issue