diff options
author | Lukas Wirth <[email protected]> | 2020-12-07 20:55:00 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-12-07 20:55:00 +0000 |
commit | 7a338e520729d5198fb233c6d94d33f1ae365b24 (patch) | |
tree | dc223a82755e91b6834dc13b6784168160c25630 /crates/hir_def/src | |
parent | b064f6da9e4b439d8b7fdb083d65e330fb599ef8 (diff) |
Replace Arc<[str]> with String in attr::Documentation
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r-- | crates/hir_def/src/attr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs index 43f0355e5..af3edc9df 100644 --- a/crates/hir_def/src/attr.rs +++ b/crates/hir_def/src/attr.rs | |||
@@ -24,7 +24,7 @@ use crate::{ | |||
24 | 24 | ||
25 | /// Holds documentation | 25 | /// Holds documentation |
26 | #[derive(Debug, Clone, PartialEq, Eq)] | 26 | #[derive(Debug, Clone, PartialEq, Eq)] |
27 | pub struct Documentation(Arc<str>); | 27 | pub struct Documentation(String); |
28 | 28 | ||
29 | impl Documentation { | 29 | impl Documentation { |
30 | pub fn as_str(&self) -> &str { | 30 | pub fn as_str(&self) -> &str { |
@@ -34,7 +34,7 @@ impl Documentation { | |||
34 | 34 | ||
35 | impl Into<String> for Documentation { | 35 | impl Into<String> for Documentation { |
36 | fn into(self) -> String { | 36 | fn into(self) -> String { |
37 | self.as_str().to_owned() | 37 | self.0 |
38 | } | 38 | } |
39 | } | 39 | } |
40 | 40 | ||