Make Documentation::new non-generic

This commit is contained in:
Laurențiu Nicola 2021-06-07 12:58:51 +03:00
parent 6e30aeeb21
commit 15dd475988

View File

@ -36,8 +36,8 @@ use crate::{
pub struct Documentation(String);
impl Documentation {
pub fn new(s: impl Into<String>) -> Self {
Documentation(s.into())
pub fn new(s: String) -> Self {
Documentation(s)
}
pub fn as_str(&self) -> &str {