File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -313,8 +313,6 @@ impl Display for ToolchainName {
313
313
/// 2. `X.Y.Z-suffix` names, sorted by semver rules on `X.Y.Z`, then by `suffix`.
314
314
/// 3. Other names, sorted alphanumerically.
315
315
pub ( crate ) fn toolchain_sort ( v : & mut [ ToolchainName ] ) {
316
- use semver:: Version ;
317
-
318
316
v. sort_by_key ( |name| {
319
317
let s = name. to_string ( ) ;
320
318
if s. starts_with ( "stable" ) {
@@ -327,7 +325,7 @@ pub(crate) fn toolchain_sort(v: &mut [ToolchainName]) {
327
325
return ( 2 , None , s) ;
328
326
}
329
327
if let Some ( ( ver_str, suffix) ) = s. split_once ( '-' ) {
330
- if let Ok ( ver) = Version :: parse ( ver_str) {
328
+ if let Ok ( ver) = semver :: Version :: parse ( ver_str) {
331
329
return ( 3 , Some ( ver) , suffix. to_owned ( ) ) ;
332
330
}
333
331
}
You can’t perform that action at this time.
0 commit comments