diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-06-06 08:27:06 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-06-06 08:27:06 +0100 |
commit | b79e6294a68fd41f0a3dbd9eb907dfe99646d77e (patch) | |
tree | 1703602891988f9d54aec6e8ef2584f8a1b982b0 /crates/ra_hir/src | |
parent | 354be0ae8a42b0dde549660c777661ab3c21b883 (diff) | |
parent | 44363cd5d264f9bd214a3d87ad847dedf15e38e8 (diff) |
Merge #1379
1379: fix: clean up warnings r=matklad a=csmoe
r? @matklad
Co-authored-by: csmoe <[email protected]>
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 | } |