diff options
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 ecbd2d427..6ed1b5213 100644 --- a/crates/ra_syntax/src/ast/traits.rs +++ b/crates/ra_syntax/src/ast/traits.rs | |||
@@ -155,7 +155,7 @@ pub struct CommentIter { | |||
155 | impl Iterator for CommentIter { | 155 | impl Iterator for CommentIter { |
156 | type Item = ast::Comment; | 156 | type Item = ast::Comment; |
157 | fn next(&mut self) -> Option<ast::Comment> { | 157 | fn next(&mut self) -> Option<ast::Comment> { |
158 | self.iter.by_ref().find_map(|el| el.as_token().cloned().and_then(ast::Comment::cast)) | 158 | self.iter.by_ref().find_map(|el| el.into_token().and_then(ast::Comment::cast)) |
159 | } | 159 | } |
160 | } | 160 | } |
161 | 161 | ||