Skip to content

Commit 1d8bd4f

Browse files
bors[bot]lnicola
andauthored
Merge #9160
9160: internal: make `Documentation::new` non-generic r=lnicola a=lnicola Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2 parents 6e30aee + 15dd475 commit 1d8bd4f

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)