diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-07 10:59:32 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-07 10:59:32 +0100 |
commit | 1d8bd4fdf63e9280b07628b8ad85cd5247a0c870 (patch) | |
tree | 30e8023f27c1fbb3173b487724f935d6d7bcd624 /crates/hir_def/src | |
parent | 6e30aeeb2163074073414ac1cde643a4915df0ee (diff) | |
parent | 15dd475988f6e1e77cd88a6d95775585dd90913a (diff) |
Merge #9160
9160: internal: make `Documentation::new` non-generic r=lnicola a=lnicola
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r-- | crates/hir_def/src/attr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs index b7e72b790..3886b6c04 100644 --- a/crates/hir_def/src/attr.rs +++ b/crates/hir_def/src/attr.rs | |||
@@ -36,8 +36,8 @@ use crate::{ | |||
36 | pub struct Documentation(String); | 36 | pub struct Documentation(String); |
37 | 37 | ||
38 | impl Documentation { | 38 | impl Documentation { |
39 | pub fn new(s: impl Into<String>) -> Self { | 39 | pub fn new(s: String) -> Self { |
40 | Documentation(s.into()) | 40 | Documentation(s) |
41 | } | 41 | } |
42 | 42 | ||
43 | pub fn as_str(&self) -> &str { | 43 | pub fn as_str(&self) -> &str { |