diff options
author | Aleksey Kladov <[email protected]> | 2020-02-29 12:49:43 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-29 12:51:23 +0000 |
commit | 5f8b37563e6d82872a18afaf4d9ca25a4ebefac0 (patch) | |
tree | accb6a6100600ef9473dd2cbeeb2b3baa7229c70 /crates/ra_assists/src | |
parent | b53ff214aa9fe30eeedb64f78cc89561060c0083 (diff) |
Cleanup editing API
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r-- | crates/ra_assists/src/ast_transform.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/ast_transform.rs b/crates/ra_assists/src/ast_transform.rs index 7846e9798..a74ac42d5 100644 --- a/crates/ra_assists/src/ast_transform.rs +++ b/crates/ra_assists/src/ast_transform.rs | |||
@@ -157,7 +157,7 @@ impl<'a> QualifyPaths<'a> { | |||
157 | 157 | ||
158 | pub fn apply<'a, N: AstNode>(transformer: &dyn AstTransform<'a>, node: N) -> N { | 158 | pub fn apply<'a, N: AstNode>(transformer: &dyn AstTransform<'a>, node: N) -> N { |
159 | let syntax = node.syntax(); | 159 | let syntax = node.syntax(); |
160 | let result = ra_syntax::algo::replace_descendants(syntax, &|element| match element { | 160 | let result = ra_syntax::algo::replace_descendants(syntax, |element| match element { |
161 | ra_syntax::SyntaxElement::Node(n) => { | 161 | ra_syntax::SyntaxElement::Node(n) => { |
162 | let replacement = transformer.get_substitution(&n)?; | 162 | let replacement = transformer.get_substitution(&n)?; |
163 | Some(replacement.into()) | 163 | Some(replacement.into()) |