diff options
author | Aleksey Kladov <[email protected]> | 2019-04-02 10:18:52 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-02 10:18:52 +0100 |
commit | 5287a2506c19b7f886556f8a73510f57dd234857 (patch) | |
tree | 70c74389382cd3c8ce72dc7739dbe5502f9f7c8b /crates/ra_syntax/src/ast/traits.rs | |
parent | d21a677715196c46b73017acbae0105ef554284d (diff) |
More future-proof comment kind
Diffstat (limited to 'crates/ra_syntax/src/ast/traits.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/traits.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/traits.rs b/crates/ra_syntax/src/ast/traits.rs index 43d1509fa..98aa22085 100644 --- a/crates/ra_syntax/src/ast/traits.rs +++ b/crates/ra_syntax/src/ast/traits.rs | |||
@@ -111,7 +111,7 @@ pub trait DocCommentsOwner: AstNode { | |||
111 | let mut has_comments = false; | 111 | let mut has_comments = false; |
112 | let docs = self | 112 | let docs = self |
113 | .doc_comments() | 113 | .doc_comments() |
114 | .filter(|comment| comment.is_doc_comment()) | 114 | .filter(|comment| comment.kind().doc.is_some()) |
115 | .map(|comment| { | 115 | .map(|comment| { |
116 | has_comments = true; | 116 | has_comments = true; |
117 | let prefix_len = comment.prefix().len(); | 117 | let prefix_len = comment.prefix().len(); |