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_analysis | |
parent | 70df097c89ee45e4e0709c21b8aeee2e84e09fc4 (diff) |
remove option from Diagnostic
Diffstat (limited to 'crates/ra_analysis')
-rw-r--r-- | crates/ra_analysis/src/imp.rs | 6 | ||||
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs index e8d6acc17..00cdf7eff 100644 --- a/crates/ra_analysis/src/imp.rs +++ b/crates/ra_analysis/src/imp.rs | |||
@@ -364,7 +364,7 @@ impl AnalysisImpl { | |||
364 | .map(|d| Diagnostic { | 364 | .map(|d| Diagnostic { |
365 | range: d.range, | 365 | range: d.range, |
366 | message: d.msg, | 366 | message: d.msg, |
367 | severity: Some(d.severity), | 367 | severity: d.severity, |
368 | fix: None, | 368 | fix: None, |
369 | }) | 369 | }) |
370 | .collect::<Vec<_>>(); | 370 | .collect::<Vec<_>>(); |
@@ -386,7 +386,7 @@ impl AnalysisImpl { | |||
386 | Diagnostic { | 386 | Diagnostic { |
387 | range: name_node.range(), | 387 | range: name_node.range(), |
388 | message: "unresolved module".to_string(), | 388 | message: "unresolved module".to_string(), |
389 | severity: Some(Severity::Error), | 389 | severity: Severity::Error, |
390 | fix: Some(fix), | 390 | fix: Some(fix), |
391 | } | 391 | } |
392 | } | 392 | } |
@@ -409,7 +409,7 @@ impl AnalysisImpl { | |||
409 | Diagnostic { | 409 | Diagnostic { |
410 | range: name_node.range(), | 410 | range: name_node.range(), |
411 | message: "can't declare module at this location".to_string(), | 411 | message: "can't declare module at this location".to_string(), |
412 | severity: Some(Severity::Error), | 412 | severity: Severity::Error, |
413 | fix: Some(fix), | 413 | fix: Some(fix), |
414 | } | 414 | } |
415 | } | 415 | } |
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index a213fd60f..fbb19ed6b 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -197,7 +197,7 @@ pub struct Diagnostic { | |||
197 | pub message: String, | 197 | pub message: String, |
198 | pub range: TextRange, | 198 | pub range: TextRange, |
199 | pub fix: Option<SourceChange>, | 199 | pub fix: Option<SourceChange>, |
200 | pub severity: Option<Severity>, | 200 | pub severity: Severity, |
201 | } | 201 | } |
202 | 202 | ||
203 | #[derive(Debug)] | 203 | #[derive(Debug)] |