diff options
author | gfreezy <[email protected]> | 2018-12-24 15:00:18 +0000 |
---|---|---|
committer | gfreezy <[email protected]> | 2018-12-24 15:00:18 +0000 |
commit | 29798c763cc121f7d610544deb940d70e4e33649 (patch) | |
tree | 4e492b0bf1c55acb0ca5079670a52739645674f8 /crates/ra_lsp_server/src/main_loop/handlers.rs | |
parent | 70df097c89ee45e4e0709c21b8aeee2e84e09fc4 (diff) |
remove option from Diagnostic
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop/handlers.rs')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 8e859e8d4..658d169cd 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs | |||
@@ -650,7 +650,7 @@ pub fn publish_diagnostics( | |||
650 | .into_iter() | 650 | .into_iter() |
651 | .map(|d| Diagnostic { | 651 | .map(|d| Diagnostic { |
652 | range: d.range.conv_with(&line_index), | 652 | range: d.range.conv_with(&line_index), |
653 | severity: d.severity.map(to_diagnostic_severity), | 653 | severity: Some(to_diagnostic_severity(d.severity)), |
654 | code: None, | 654 | code: None, |
655 | source: Some("rust-analyzer".to_string()), | 655 | source: Some("rust-analyzer".to_string()), |
656 | message: d.message, | 656 | message: d.message, |