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_def/src/diagnostics.rs | |
parent | c51fb7aca531b98e01a8a71a30bb35d1376efe02 (diff) |
Replace String with &'static str
Diffstat (limited to 'crates/ra_hir_def/src/diagnostics.rs')
-rw-r--r-- | crates/ra_hir_def/src/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/diagnostics.rs b/crates/ra_hir_def/src/diagnostics.rs index 1d28c24e8..481b13a87 100644 --- a/crates/ra_hir_def/src/diagnostics.rs +++ b/crates/ra_hir_def/src/diagnostics.rs | |||
@@ -15,8 +15,8 @@ pub struct UnresolvedModule { | |||
15 | } | 15 | } |
16 | 16 | ||
17 | impl Diagnostic for UnresolvedModule { | 17 | impl Diagnostic for UnresolvedModule { |
18 | fn name(&self) -> String { | 18 | fn name(&self) -> &'static str { |
19 | "unresolved-module".to_string() | 19 | "unresolved-module" |
20 | } | 20 | } |
21 | fn message(&self) -> String { | 21 | fn message(&self) -> String { |
22 | "unresolved module".to_string() | 22 | "unresolved module".to_string() |