diff options
author | Emil Lauridsen <[email protected]> | 2019-12-25 16:14:20 +0000 |
---|---|---|
committer | Emil Lauridsen <[email protected]> | 2019-12-25 16:37:40 +0000 |
commit | 17360b5d14ec98085169bfb344b220dcfc75b9f0 (patch) | |
tree | b67ce169e039b7747a984553ad0e6245cdcf6f89 /crates/ra_lsp_server/src/cargo_check.rs | |
parent | 6af4bf7a8d27e653d2e6316172fe140871054d27 (diff) |
Fix use of wrong message in diagnostic
Diffstat (limited to 'crates/ra_lsp_server/src/cargo_check.rs')
-rw-r--r-- | crates/ra_lsp_server/src/cargo_check.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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( | |||
545 | severity, | 545 | severity, |
546 | code: code.map(NumberOrString::String), | 546 | code: code.map(NumberOrString::String), |
547 | source: Some(source), | 547 | source: Some(source), |
548 | message: rd.message.clone(), | 548 | message, |
549 | related_information: if !related_information.is_empty() { | 549 | related_information: if !related_information.is_empty() { |
550 | Some(related_information) | 550 | Some(related_information) |
551 | } else { | 551 | } else { |