File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,15 @@ export class RustDependenciesProvider
85
85
) ;
86
86
const crates = dependenciesResult . crates ;
87
87
88
- return crates . map ( ( crate ) => {
89
- const dep = this . toDep ( crate . name || "unknown" , crate . version || "" , crate . path ) ;
90
- this . dependenciesMap [ dep . dependencyPath . toLowerCase ( ) ] = dep ;
91
- return dep ;
92
- } ) . sort ( ( a , b ) => {
93
- return a . label . localeCompare ( b . label )
94
- } ) ;
88
+ return crates
89
+ . map ( ( crate ) => {
90
+ const dep = this . toDep ( crate . name || "unknown" , crate . version || "" , crate . path ) ;
91
+ this . dependenciesMap [ dep . dependencyPath . toLowerCase ( ) ] = dep ;
92
+ return dep ;
93
+ } )
94
+ . sort ( ( a , b ) => {
95
+ return a . label . localeCompare ( b . label ) ;
96
+ } ) ;
95
97
}
96
98
97
99
private toDep ( moduleName : string , version : string , path : string ) : Dependency {
You can’t perform that action at this time.
0 commit comments