From ac19a71459765f897c3bb38ffd9a5a179e0beb02 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Fri, 11 Dec 2020 20:11:03 +0100 Subject: Use Attrs::docs in runnables instead of DocCommentsOwner --- crates/hir_def/src/attr.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/hir_def/src') diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs index 228d706db..ff8fb7483 100644 --- a/crates/hir_def/src/attr.rs +++ b/crates/hir_def/src/attr.rs @@ -32,9 +32,9 @@ impl Documentation { } } -impl Into for Documentation { - fn into(self) -> String { - self.0 +impl From for String { + fn from(Documentation(string): Documentation) -> Self { + string } } -- cgit v1.2.3