util.rs: fix Yoda condition

This commit is contained in:
Johannes Altmanninger 2023-02-05 11:58:33 +01:00
parent 8460b37b6a
commit ba1c5d495f

View file

@ -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 {