From 0e49abb7fbe9239b97f0b7168ec359014c63f8c0 Mon Sep 17 00:00:00 2001 From: Ville Penttinen Date: Tue, 12 Mar 2019 09:24:46 +0200 Subject: Refactor CallInfo function signatures to new FunctionSignature type This is used by CallInfo to create a pretty printed function signature that can be used with completions and other places as well. --- crates/ra_hir/src/docs.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/docs.rs b/crates/ra_hir/src/docs.rs index 5db72c08a..e3a755b46 100644 --- a/crates/ra_hir/src/docs.rs +++ b/crates/ra_hir/src/docs.rs @@ -22,6 +22,12 @@ impl Into for Documentation { } } +impl<'a> Into for &'a Documentation { + fn into(self) -> String { + self.contents().into() + } +} + pub trait Docs { fn docs(&self, db: &impl HirDatabase) -> Option; } -- cgit v1.2.3