aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorNick Spain <[email protected]>2021-01-01 22:48:51 +0000
committerNick Spain <[email protected]>2021-01-02 10:53:52 +0000
commit5c659c21dda26311be584d0bb89b80f8ae3d7bae (patch)
treecbea769c0b9885df2ad5fcb36249306d0ffdd9c5 /crates
parent3a1f8e897bc2af56cd7a6c08bad1bf88cc97b257 (diff)
Handle case where detail doesn't exist without giving up on completion
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/completion/src/render/macro_.rs2
1 files changed, 1 insertions, 1 deletions
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> {
45 .set_documentation(self.docs.clone()) 45 .set_documentation(self.docs.clone())
46 .set_deprecated(self.ctx.is_deprecated(self.macro_)) 46 .set_deprecated(self.ctx.is_deprecated(self.macro_))
47 .add_import(import_to_add) 47 .add_import(import_to_add)
48 .detail(self.detail()?); 48 .set_detail(self.detail());
49 49
50 let needs_bang = self.needs_bang(); 50 let needs_bang = self.needs_bang();
51 builder = match self.ctx.snippet_cap() { 51 builder = match self.ctx.snippet_cap() {