aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-12-06 13:23:55 +0000
committerGitHub <[email protected]>2020-12-06 13:23:55 +0000
commit45b8b3d57fd1a38a0ccce8516cbebbd09184d59a (patch)
tree5de8d09fea220460bf49657f086d3130c79eb491
parent2a6c246184536761971b5338d5638e4bfff6ce64 (diff)
Apply suggestions from code review
Co-authored-by: LaurenČ›iu Nicola <[email protected]>
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt2
-rw-r--r--crates/rust-analyzer/src/diagnostics/to_proto.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt b/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt
index 8f8953cd2..bdcf2a38f 100644
--- a/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt
+++ b/crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt
@@ -51,7 +51,7 @@
51 }, 51 },
52 }, 52 },
53 }, 53 },
54 message: "Exact error occured here", 54 message: "Exact error occurred here",
55 }, 55 },
56 ], 56 ],
57 ), 57 ),
diff --git a/crates/rust-analyzer/src/diagnostics/to_proto.rs b/crates/rust-analyzer/src/diagnostics/to_proto.rs
index 766c342f1..f16f97131 100644
--- a/crates/rust-analyzer/src/diagnostics/to_proto.rs
+++ b/crates/rust-analyzer/src/diagnostics/to_proto.rs
@@ -266,7 +266,7 @@ pub(crate) fn map_rust_diagnostic_to_lsp(
266 let information_for_additional_diagnostic = 266 let information_for_additional_diagnostic =
267 vec![lsp_types::DiagnosticRelatedInformation { 267 vec![lsp_types::DiagnosticRelatedInformation {
268 location: location.clone(), 268 location: location.clone(),
269 message: "Exact error occured here".to_string(), 269 message: "Exact error occurred here".to_string(),
270 }]; 270 }];
271 271
272 let diagnostic = lsp_types::Diagnostic { 272 let diagnostic = lsp_types::Diagnostic {