aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def')
-rw-r--r--crates/hir_def/src/attr.rs4
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)]
27pub struct Documentation(Arc<str>); 27pub struct Documentation(String);
28 28
29impl Documentation { 29impl Documentation {
30 pub fn as_str(&self) -> &str { 30 pub fn as_str(&self) -> &str {
@@ -34,7 +34,7 @@ impl Documentation {
34 34
35impl Into<String> for Documentation { 35impl 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