remove option from Diagnostic

This commit is contained in:
gfreezy 2018-12-24 23:00:18 +08:00
parent 70df097c89
commit 29798c763c
4 changed files with 7 additions and 7 deletions

View file

@ -364,7 +364,7 @@ impl AnalysisImpl {
.map(|d| Diagnostic {
range: d.range,
message: d.msg,
severity: Some(d.severity),
severity: d.severity,
fix: None,
})
.collect::<Vec<_>>();
@ -386,7 +386,7 @@ impl AnalysisImpl {
Diagnostic {
range: name_node.range(),
message: "unresolved module".to_string(),
severity: Some(Severity::Error),
severity: Severity::Error,
fix: Some(fix),
}
}
@ -409,7 +409,7 @@ impl AnalysisImpl {
Diagnostic {
range: name_node.range(),
message: "can't declare module at this location".to_string(),
severity: Some(Severity::Error),
severity: Severity::Error,
fix: Some(fix),
}
}