9160: internal: make `Documentation::new` non-generic r=lnicola a=lnicola



Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
bors[bot] 2021-06-07 09:59:32 +00:00 committed by GitHub
commit 1d8bd4fdf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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