mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
Make Documentation::new non-generic
This commit is contained in:
parent
6e30aeeb21
commit
15dd475988
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user