aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r--crates/ra_hir_def/src/diagnostics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/diagnostics.rs b/crates/ra_hir_def/src/diagnostics.rs
index dbaf4deef..2ee28fbaa 100644
--- a/crates/ra_hir_def/src/diagnostics.rs
+++ b/crates/ra_hir_def/src/diagnostics.rs
@@ -20,11 +20,11 @@ impl Diagnostic for UnresolvedModule {
20 fn message(&self) -> String { 20 fn message(&self) -> String {
21 "unresolved module".to_string() 21 "unresolved module".to_string()
22 } 22 }
23 fn highlight_range(&self) -> TextRange { 23 fn highlight_range(&self) -> InFile<TextRange> {
24 self.highlight_range 24 InFile::new(self.file, self.highlight_range)
25 } 25 }
26 fn source(&self) -> InFile<SyntaxNodePtr> { 26 fn source(&self) -> InFile<SyntaxNodePtr> {
27 InFile { file_id: self.file, value: self.decl.clone().into() } 27 InFile::new(self.file, self.decl.clone().into())
28 } 28 }
29 fn as_any(&self) -> &(dyn Any + Send + 'static) { 29 fn as_any(&self) -> &(dyn Any + Send + 'static) {
30 self 30 self