From 17360b5d14ec98085169bfb344b220dcfc75b9f0 Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Wed, 25 Dec 2019 17:14:20 +0100 Subject: Fix use of wrong message in diagnostic --- crates/ra_lsp_server/src/cargo_check.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_lsp_server/src/cargo_check.rs') diff --git a/crates/ra_lsp_server/src/cargo_check.rs b/crates/ra_lsp_server/src/cargo_check.rs index f98b4f69c..30716fc43 100644 --- a/crates/ra_lsp_server/src/cargo_check.rs +++ b/crates/ra_lsp_server/src/cargo_check.rs @@ -545,7 +545,7 @@ fn map_rust_diagnostic_to_lsp( severity, code: code.map(NumberOrString::String), source: Some(source), - message: rd.message.clone(), + message, related_information: if !related_information.is_empty() { Some(related_information) } else { -- cgit v1.2.3