Replace Arc<[str]> with String in attr::Documentation

This commit is contained in:
Lukas Wirth 2020-12-07 21:55:00 +01:00
parent b064f6da9e
commit 7a338e5207

View File

@ -24,7 +24,7 @@ use crate::{
/// Holds documentation
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Documentation(Arc<str>);
pub struct Documentation(String);
impl Documentation {
pub fn as_str(&self) -> &str {
@ -34,7 +34,7 @@ impl Documentation {
impl Into<String> for Documentation {
fn into(self) -> String {
self.as_str().to_owned()
self.0
}
}