Skip to content

Commit 91b4a16

Browse files
committed
Fix formatting
1 parent 06cfeb4 commit 91b4a16

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Diff for: editors/code/src/dependencies_provider.ts

+9-7
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@ export class RustDependenciesProvider
8585
);
8686
const crates = dependenciesResult.crates;
8787

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+
});
9597
}
9698

9799
private toDep(moduleName: string, version: string, path: string): Dependency {

0 commit comments

Comments
 (0)