diff options
author | Laurențiu Nicola <[email protected]> | 2020-07-01 08:46:27 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2020-07-01 08:46:27 +0100 |
commit | 1be5e848b099efe050c5803abf8b1f96ad4ec0fb (patch) | |
tree | 55ab43beaaa310eb5eeca152bf71349aab0a359b /crates/ra_hir_expand/src | |
parent | 30c2e714cc1677cbea40a47d7c0944c92f66b7c9 (diff) |
Use dynamic dispatch in AstDiagnostic
Diffstat (limited to 'crates/ra_hir_expand/src')
-rw-r--r-- | crates/ra_hir_expand/src/diagnostics.rs | 2 |
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 | ||
29 | pub trait AstDiagnostic { | 29 | pub 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 | ||
34 | impl dyn Diagnostic { | 34 | impl dyn Diagnostic { |