keep severity to Error & WeakWarning

This commit is contained in:
gfreezy 2018-12-24 22:48:46 +08:00
parent 17b35a7f7d
commit 70df097c89
2 changed files with 8 additions and 10 deletions

View file

@ -364,7 +364,7 @@ impl AnalysisImpl {
.map(|d| Diagnostic {
range: d.range,
message: d.msg,
severity: d.severity,
severity: Some(d.severity),
fix: None,
})
.collect::<Vec<_>>();