mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Fix formatting
This commit is contained in:
parent
06cfeb47b2
commit
91b4a169cd
@ -85,13 +85,15 @@ export class RustDependenciesProvider
|
||||
);
|
||||
const crates = dependenciesResult.crates;
|
||||
|
||||
return crates.map((crate) => {
|
||||
const dep = this.toDep(crate.name || "unknown", crate.version || "", crate.path);
|
||||
this.dependenciesMap[dep.dependencyPath.toLowerCase()] = dep;
|
||||
return dep;
|
||||
}).sort((a, b) => {
|
||||
return a.label.localeCompare(b.label)
|
||||
});
|
||||
return crates
|
||||
.map((crate) => {
|
||||
const dep = this.toDep(crate.name || "unknown", crate.version || "", crate.path);
|
||||
this.dependenciesMap[dep.dependencyPath.toLowerCase()] = dep;
|
||||
return dep;
|
||||
})
|
||||
.sort((a, b) => {
|
||||
return a.label.localeCompare(b.label);
|
||||
});
|
||||
}
|
||||
|
||||
private toDep(moduleName: string, version: string, path: string): Dependency {
|
||||
|
Loading…
Reference in New Issue
Block a user