aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2020-07-01 08:46:27 +0100
committerLaurenČ›iu Nicola <[email protected]>2020-07-01 08:46:27 +0100
commit1be5e848b099efe050c5803abf8b1f96ad4ec0fb (patch)
tree55ab43beaaa310eb5eeca152bf71349aab0a359b /crates/ra_hir_expand
parent30c2e714cc1677cbea40a47d7c0944c92f66b7c9 (diff)
Use dynamic dispatch in AstDiagnostic
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r--crates/ra_hir_expand/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_expand/src/diagnostics.rs b/crates/ra_hir_expand/src/diagnostics.rs
index 99209c6e8..545cff9bd 100644
--- a/crates/ra_hir_expand/src/diagnostics.rs
+++ b/crates/ra_hir_expand/src/diagnostics.rs
@@ -28,7 +28,7 @@ pub trait Diagnostic: Any + Send + Sync + fmt::Debug + 'static {
28 28
29pub trait AstDiagnostic { 29pub trait AstDiagnostic {
30 type AST; 30 type AST;
31 fn ast(&self, db: &impl AstDatabase) -> Self::AST; 31 fn ast(&self, db: &dyn AstDatabase) -> Self::AST;
32} 32}
33 33
34impl dyn Diagnostic { 34impl dyn Diagnostic {