From 45b8b3d57fd1a38a0ccce8516cbebbd09184d59a Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Sun, 6 Dec 2020 14:23:55 +0100 Subject: Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Laurențiu Nicola --- crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt | 2 +- crates/rust-analyzer/src/diagnostics/to_proto.rs | 2 +- 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 @@ }, }, }, - message: "Exact error occured here", + message: "Exact error occurred here", }, ], ), 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( let information_for_additional_diagnostic = vec![lsp_types::DiagnosticRelatedInformation { location: location.clone(), - message: "Exact error occured here".to_string(), + message: "Exact error occurred here".to_string(), }]; let diagnostic = lsp_types::Diagnostic { -- cgit v1.2.3