fixup! Removed stable/unstable sort arg from into_sorted_stable_ord, fixed a few misc issues, added collect to UnordItems

This commit is contained in:
Andrew Xie 2023-06-08 00:40:29 -04:00
parent f2f342adb4
commit ecd6afaa12

View File

@ -160,7 +160,7 @@ impl LateLintPass<'_> for WildcardImports {
)
};
let mut imports = used_imports.items().map(ToString::to_string).into_sorted_stable_ord();
let mut imports = used_imports.items().map(ToString::to_string).into_sorted_stable_ord(false);
let imports_string = if imports.len() == 1 {
imports.pop().unwrap()
} else if braced_glob {