aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/render/macro_.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/completion/src/render/macro_.rs')
-rw-r--r--crates/completion/src/render/macro_.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/completion/src/render/macro_.rs b/crates/completion/src/render/macro_.rs
index bcf94f47e..0ad8c03b3 100644
--- a/crates/completion/src/render/macro_.rs
+++ b/crates/completion/src/render/macro_.rs
@@ -1,4 +1,4 @@
1use hir::{Documentation, HasAttrs, HasSource}; 1use hir::{Documentation, HasSource};
2use syntax::display::macro_label; 2use syntax::display::macro_label;
3use test_utils::mark; 3use test_utils::mark;
4 4
@@ -23,7 +23,7 @@ impl<'a> MacroRender<'a> {
23 name: String, 23 name: String,
24 macro_: hir::MacroDef, 24 macro_: hir::MacroDef,
25 ) -> MacroRender<'a> { 25 ) -> MacroRender<'a> {
26 let docs = macro_.docs(ctx.db()); 26 let docs = ctx.docs(macro_);
27 let docs_str = docs.as_ref().map_or("", |s| s.as_str()); 27 let docs_str = docs.as_ref().map_or("", |s| s.as_str());
28 let (bra, ket) = guess_macro_braces(&name, docs_str); 28 let (bra, ket) = guess_macro_braces(&name, docs_str);
29 29