aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/diagnostics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/diagnostics.rs')
-rw-r--r--crates/hir_ty/src/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/diagnostics.rs b/crates/hir_ty/src/diagnostics.rs
index f2e06495e..dfe98571e 100644
--- a/crates/hir_ty/src/diagnostics.rs
+++ b/crates/hir_ty/src/diagnostics.rs
@@ -267,7 +267,7 @@ impl fmt::Display for CaseType {
267#[derive(Debug)] 267#[derive(Debug)]
268pub struct IncorrectCase { 268pub struct IncorrectCase {
269 pub file: HirFileId, 269 pub file: HirFileId,
270 pub ident: SyntaxNodePtr, 270 pub ident: AstPtr<ast::Name>,
271 pub expected_case: CaseType, 271 pub expected_case: CaseType,
272 pub ident_type: String, 272 pub ident_type: String,
273 pub ident_text: String, 273 pub ident_text: String,
@@ -290,7 +290,7 @@ impl Diagnostic for IncorrectCase {
290 } 290 }
291 291
292 fn display_source(&self) -> InFile<SyntaxNodePtr> { 292 fn display_source(&self) -> InFile<SyntaxNodePtr> {
293 InFile::new(self.file, self.ident.clone()) 293 InFile::new(self.file, self.ident.clone().into())
294 } 294 }
295 295
296 fn as_any(&self) -> &(dyn Any + Send + 'static) { 296 fn as_any(&self) -> &(dyn Any + Send + 'static) {