diff options
author | csmoe <[email protected]> | 2019-06-06 03:06:46 +0100 |
---|---|---|
committer | csmoe <[email protected]> | 2019-06-06 03:06:46 +0100 |
commit | 44363cd5d264f9bd214a3d87ad847dedf15e38e8 (patch) | |
tree | 1703602891988f9d54aec6e8ef2584f8a1b982b0 /crates/ra_hir/src | |
parent | 354be0ae8a42b0dde549660c777661ab3c21b883 (diff) |
fix: clean up warnings
Change-Id: I91a468f6e846ac28574825b8ee7aa02fbff68f63
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
87 | fn syntax_node_ptr(&self) -> SyntaxNodePtr { | 87 | fn syntax_node_ptr(&self) -> SyntaxNodePtr { |
88 | self.field.into() | 88 | self.field.into() |
89 | } | 89 | } |
90 | fn as_any(&self) -> &(Any + Send + 'static) { | 90 | fn as_any(&self) -> &(dyn Any + Send + 'static) { |
91 | self | 91 | self |
92 | } | 92 | } |
93 | } | 93 | } |
@@ -109,7 +109,7 @@ impl Diagnostic for UnresolvedModule { | |||
109 | fn syntax_node_ptr(&self) -> SyntaxNodePtr { | 109 | fn syntax_node_ptr(&self) -> SyntaxNodePtr { |
110 | self.decl.into() | 110 | self.decl.into() |
111 | } | 111 | } |
112 | fn as_any(&self) -> &(Any + Send + 'static) { | 112 | fn as_any(&self) -> &(dyn Any + Send + 'static) { |
113 | self | 113 | self |
114 | } | 114 | } |
115 | } | 115 | } |