Skip to content

Commit 7a338e5

Browse files
committed
Replace Arc<[str]> with String in attr::Documentation
1 parent b064f6d commit 7a338e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/hir_def/src/attr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::{
2424

2525
/// Holds documentation
2626
#[derive(Debug, Clone, PartialEq, Eq)]
27-
pub struct Documentation(Arc<str>);
27+
pub struct Documentation(String);
2828

2929
impl Documentation {
3030
pub fn as_str(&self) -> &str {
@@ -34,7 +34,7 @@ impl Documentation {
3434

3535
impl Into<String> for Documentation {
3636
fn into(self) -> String {
37-
self.as_str().to_owned()
37+
self.0
3838
}
3939
}
4040

0 commit comments

Comments
 (0)