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:
parent
f2f342adb4
commit
ecd6afaa12
@ -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 {
|
let imports_string = if imports.len() == 1 {
|
||||||
imports.pop().unwrap()
|
imports.pop().unwrap()
|
||||||
} else if braced_glob {
|
} else if braced_glob {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user