From 15dd475988f6e1e77cd88a6d95775585dd90913a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 7 Jun 2021 12:58:51 +0300 Subject: Make Documentation::new non-generic --- crates/hir_def/src/attr.rs | 4 ++-- 1 file 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::{ pub struct Documentation(String); impl Documentation { - pub fn new(s: impl Into) -> Self { - Documentation(s.into()) + pub fn new(s: String) -> Self { + Documentation(s) } pub fn as_str(&self) -> &str { -- cgit v1.2.3