mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Merge #9160
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:
commit
1d8bd4fdf6
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue