From 44363cd5d264f9bd214a3d87ad847dedf15e38e8 Mon Sep 17 00:00:00 2001 From: csmoe Date: Thu, 6 Jun 2019 10:06:46 +0800 Subject: fix: clean up warnings Change-Id: I91a468f6e846ac28574825b8ee7aa02fbff68f63 --- crates/ra_hir/src/diagnostics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/diagnostics.rs b/crates/ra_hir/src/diagnostics.rs index 4b7b2dbee..2557ef18e 100644 --- a/crates/ra_hir/src/diagnostics.rs +++ b/crates/ra_hir/src/diagnostics.rs @@ -87,7 +87,7 @@ impl Diagnostic for NoSuchField { fn syntax_node_ptr(&self) -> SyntaxNodePtr { self.field.into() } - fn as_any(&self) -> &(Any + Send + 'static) { + fn as_any(&self) -> &(dyn Any + Send + 'static) { self } } @@ -109,7 +109,7 @@ impl Diagnostic for UnresolvedModule { fn syntax_node_ptr(&self) -> SyntaxNodePtr { self.decl.into() } - fn as_any(&self) -> &(Any + Send + 'static) { + fn as_any(&self) -> &(dyn Any + Send + 'static) { self } } -- cgit v1.2.3