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 54d7b327e5
commit 4ae250bf4e
@@ -160,7 +160,7 @@ fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) {
)
};
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 {