From 3fea602fe6663a092cc1f73f3e23d68ba8b2a0bf Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Wed, 13 Jul 2022 15:50:20 +1000 Subject: [PATCH] fmt --- cli/lsp/diagnostics.rs | 45 +++++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs index f5fd7ad77e9161..7c5ab936a61b6c 100644 --- a/cli/lsp/diagnostics.rs +++ b/cli/lsp/diagnostics.rs @@ -1168,29 +1168,34 @@ let c: number = "a"; assert_eq!(actual.len(), 2); for (specifier, _, diagnostics) in actual { match specifier.as_str() { - "file:///std/testing/asserts.ts" => assert_eq!(json!(diagnostics), json!([])), - "file:///a/file.ts" => assert_eq!(json!(diagnostics), json!([ - { - "range": { - "start": { - "line": 0, - "character": 23 + "file:///std/testing/asserts.ts" => { + assert_eq!(json!(diagnostics), json!([])) + } + "file:///a/file.ts" => assert_eq!( + json!(diagnostics), + json!([ + { + "range": { + "start": { + "line": 0, + "character": 23 + }, + "end": { + "line": 0, + "character": 50 + } }, - "end": { - "line": 0, - "character": 50 + "severity": 4, + "code": "import-map-remap", + "source": "deno", + "message": "The import specifier can be remapped to \"/~/std/testing/asserts.ts\" which will resolve it via the active import map.", + "data": { + "from": "../std/testing/asserts.ts", + "to": "/~/std/testing/asserts.ts" } - }, - "severity": 4, - "code": "import-map-remap", - "source": "deno", - "message": "The import specifier can be remapped to \"/~/std/testing/asserts.ts\" which will resolve it via the active import map.", - "data": { - "from": "../std/testing/asserts.ts", - "to": "/~/std/testing/asserts.ts" } - } - ])), + ]) + ), _ => unreachable!("unexpected specifier {}", specifier), } }