Skip to content

Commit 15dd475

Browse files
committed
Make Documentation::new non-generic
1 parent 6e30aee commit 15dd475

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/hir_def/src/attr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ use crate::{
3636
pub struct Documentation(String);
3737

3838
impl Documentation {
39-
pub fn new(s: impl Into<String>) -> Self {
40-
Documentation(s.into())
39+
pub fn new(s: String) -> Self {
40+
Documentation(s)
4141
}
4242

4343
pub fn as_str(&self) -> &str {

0 commit comments

Comments
 (0)