mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +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);
|
||||
|
||||
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 a new issue