mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Handle case where detail doesn't exist without giving up on completion
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
parent
3a1f8e897b
commit
5c659c21dd
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ impl<'a> MacroRender<'a> {
|
||||||
.set_documentation(self.docs.clone())
|
.set_documentation(self.docs.clone())
|
||||||
.set_deprecated(self.ctx.is_deprecated(self.macro_))
|
.set_deprecated(self.ctx.is_deprecated(self.macro_))
|
||||||
.add_import(import_to_add)
|
.add_import(import_to_add)
|
||||||
.detail(self.detail()?);
|
.set_detail(self.detail());
|
||||||
|
|
||||||
let needs_bang = self.needs_bang();
|
let needs_bang = self.needs_bang();
|
||||||
builder = match self.ctx.snippet_cap() {
|
builder = match self.ctx.snippet_cap() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue