From 91b4a169cdc1e51aeae4f8414b9b309ed00972fb Mon Sep 17 00:00:00 2001 From: Erik Steiger Date: Fri, 5 May 2023 14:49:42 +0200 Subject: [PATCH] Fix formatting --- editors/code/src/dependencies_provider.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/editors/code/src/dependencies_provider.ts b/editors/code/src/dependencies_provider.ts index cb306cb368a..8900aa9a5f3 100644 --- a/editors/code/src/dependencies_provider.ts +++ b/editors/code/src/dependencies_provider.ts @@ -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 {