diff options
author | Igor Aleksanov <[email protected]> | 2020-08-12 13:33:07 +0100 |
---|---|---|
committer | Igor Aleksanov <[email protected]> | 2020-08-12 13:33:07 +0100 |
commit | 831e3d58b32ad64329f0c84ac93b7b97c7d6c268 (patch) | |
tree | cb0aea977a86552885aaa0183884a255a8925d14 /crates/ra_hir_expand/src | |
parent | c51fb7aca531b98e01a8a71a30bb35d1376efe02 (diff) |
Replace String with &'static str
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 ef1d61144..507132a13 100644 --- a/crates/ra_hir_expand/src/diagnostics.rs +++ b/crates/ra_hir_expand/src/diagnostics.rs | |||
@@ -21,7 +21,7 @@ use ra_syntax::{SyntaxNode, SyntaxNodePtr}; | |||
21 | use crate::{db::AstDatabase, InFile}; | 21 | use crate::{db::AstDatabase, InFile}; |
22 | 22 | ||
23 | pub trait Diagnostic: Any + Send + Sync + fmt::Debug + 'static { | 23 | pub trait Diagnostic: Any + Send + Sync + fmt::Debug + 'static { |
24 | fn name(&self) -> String; | 24 | fn name(&self) -> &'static str; |
25 | fn message(&self) -> String; | 25 | fn message(&self) -> String; |
26 | fn source(&self) -> InFile<SyntaxNodePtr>; | 26 | fn source(&self) -> InFile<SyntaxNodePtr>; |
27 | fn as_any(&self) -> &(dyn Any + Send + 'static); | 27 | fn as_any(&self) -> &(dyn Any + Send + 'static); |