mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +00:00
Fix formatting
This commit is contained in:
parent
06cfeb47b2
commit
91b4a169cd
1 changed files with 9 additions and 7 deletions
|
@ -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 a new issue