diff options
author | Jess Balint <[email protected]> | 2020-05-22 15:25:55 +0100 |
---|---|---|
committer | Jess Balint <[email protected]> | 2020-05-22 15:25:55 +0100 |
commit | 1f9e02c74e7822a490466a605fa384ce1b5e3afe (patch) | |
tree | 5fe797ce562a33be1a56fc9fec816866e1454ebc /crates/ra_assists/src/handlers | |
parent | 6594235dd80d337dd7bfaa8be876ba5e111526b1 (diff) |
fix generated docs issue
Diffstat (limited to 'crates/ra_assists/src/handlers')
-rw-r--r-- | crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs b/crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs index 8d8f7833f..7101d9aaf 100644 --- a/crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs +++ b/crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs | |||
@@ -2,29 +2,29 @@ use crate::{AssistContext, AssistId, Assists}; | |||
2 | use ra_syntax::{ast, ast::TypeParamsOwner, AstNode, SyntaxKind}; | 2 | use ra_syntax::{ast, ast::TypeParamsOwner, AstNode, SyntaxKind}; |
3 | use std::collections::HashSet; | 3 | use std::collections::HashSet; |
4 | 4 | ||
5 | /// Assist: change_lifetime_anon_to_named | 5 | // Assist: change_lifetime_anon_to_named |
6 | /// | 6 | // |
7 | /// Change an anonymous lifetime to a named lifetime. | 7 | // Change an anonymous lifetime to a named lifetime. |
8 | /// | 8 | // |
9 | /// ``` | 9 | // ``` |
10 | /// impl Cursor<'_<|>> { | 10 | // impl Cursor<'_<|>> { |
11 | /// fn node(self) -> &SyntaxNode { | 11 | // fn node(self) -> &SyntaxNode { |
12 | /// match self { | 12 | // match self { |
13 | /// Cursor::Replace(node) | Cursor::Before(node) => node, | 13 | // Cursor::Replace(node) | Cursor::Before(node) => node, |
14 | /// } | 14 | // } |
15 | /// } | 15 | // } |
16 | /// } | 16 | // } |
17 | /// ``` | 17 | // ``` |
18 | /// -> | 18 | // -> |
19 | /// ``` | 19 | // ``` |
20 | /// impl<'a> Cursor<'a> { | 20 | // impl<'a> Cursor<'a> { |
21 | /// fn node(self) -> &SyntaxNode { | 21 | // fn node(self) -> &SyntaxNode { |
22 | /// match self { | 22 | // match self { |
23 | /// Cursor::Replace(node) | Cursor::Before(node) => node, | 23 | // Cursor::Replace(node) | Cursor::Before(node) => node, |
24 | /// } | 24 | // } |
25 | /// } | 25 | // } |
26 | /// } | 26 | // } |
27 | /// ``` | 27 | // ``` |
28 | // FIXME: How can we handle renaming any one of multiple anonymous lifetimes? | 28 | // FIXME: How can we handle renaming any one of multiple anonymous lifetimes? |
29 | pub(crate) fn change_lifetime_anon_to_named(acc: &mut Assists, ctx: &AssistContext) -> Option<()> { | 29 | pub(crate) fn change_lifetime_anon_to_named(acc: &mut Assists, ctx: &AssistContext) -> Option<()> { |
30 | let lifetime_token = ctx.find_token_at_offset(SyntaxKind::LIFETIME)?; | 30 | let lifetime_token = ctx.find_token_at_offset(SyntaxKind::LIFETIME)?; |