aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src')
-rw-r--r--crates/ra_analysis/src/imp.rs6
-rw-r--r--crates/ra_analysis/src/lib.rs2
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)]