mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 22:24:14 +00:00
Make Documentation::new non-generic
This commit is contained in:
parent
6e30aeeb21
commit
15dd475988
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