From 7a338e520729d5198fb233c6d94d33f1ae365b24 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 7 Dec 2020 21:55:00 +0100 Subject: Replace Arc<[str]> with String in attr::Documentation --- crates/hir_def/src/attr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_def') 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::{ /// Holds documentation #[derive(Debug, Clone, PartialEq, Eq)] -pub struct Documentation(Arc); +pub struct Documentation(String); impl Documentation { pub fn as_str(&self) -> &str { @@ -34,7 +34,7 @@ impl Documentation { impl Into for Documentation { fn into(self) -> String { - self.as_str().to_owned() + self.0 } } -- cgit v1.2.3