mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Make doc comments optional
This commit is contained in:
parent
e9e0ea0398
commit
a892067951
4 changed files with 27 additions and 19 deletions
|
@ -120,8 +120,7 @@ impl CallInfo {
|
|||
};
|
||||
|
||||
let mut doc = None;
|
||||
let docs = node.doc_comment_text();
|
||||
if !docs.is_empty() {
|
||||
if let Some(docs) = node.doc_comment_text() {
|
||||
// Massage markdown
|
||||
let mut processed_lines = Vec::new();
|
||||
let mut in_code_block = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue