aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand/src
diff options
context:
space:
mode:
authorIgor Aleksanov <[email protected]>2020-08-12 13:33:07 +0100
committerIgor Aleksanov <[email protected]>2020-08-12 13:33:07 +0100
commit831e3d58b32ad64329f0c84ac93b7b97c7d6c268 (patch)
treecb0aea977a86552885aaa0183884a255a8925d14 /crates/ra_hir_expand/src
parentc51fb7aca531b98e01a8a71a30bb35d1376efe02 (diff)
Replace String with &'static str
Diffstat (limited to 'crates/ra_hir_expand/src')
-rw-r--r--crates/ra_hir_expand/src/diagnostics.rs2
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};
21use crate::{db::AstDatabase, InFile}; 21use crate::{db::AstDatabase, InFile};
22 22
23pub trait Diagnostic: Any + Send + Sync + fmt::Debug + 'static { 23pub 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);