Fix formatting

This commit is contained in:
Erik Steiger 2023-05-05 14:49:42 +02:00
parent 06cfeb47b2
commit 91b4a169cd

View File

@ -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 {