From 5c659c21dda26311be584d0bb89b80f8ae3d7bae Mon Sep 17 00:00:00 2001 From: Nick Spain Date: Sat, 2 Jan 2021 09:48:51 +1100 Subject: Handle case where detail doesn't exist without giving up on completion Co-authored-by: Aleksey Kladov --- crates/completion/src/render/macro_.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/completion/src') diff --git a/crates/completion/src/render/macro_.rs b/crates/completion/src/render/macro_.rs index 0612591fd..6f4f9945c 100644 --- a/crates/completion/src/render/macro_.rs +++ b/crates/completion/src/render/macro_.rs @@ -45,7 +45,7 @@ impl<'a> MacroRender<'a> { .set_documentation(self.docs.clone()) .set_deprecated(self.ctx.is_deprecated(self.macro_)) .add_import(import_to_add) - .detail(self.detail()?); + .set_detail(self.detail()); let needs_bang = self.needs_bang(); builder = match self.ctx.snippet_cap() { -- cgit v1.2.3