aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-29 12:49:43 +0000
committerAleksey Kladov <[email protected]>2020-02-29 12:51:23 +0000
commit5f8b37563e6d82872a18afaf4d9ca25a4ebefac0 (patch)
treeaccb6a6100600ef9473dd2cbeeb2b3baa7229c70 /crates/ra_assists/src
parentb53ff214aa9fe30eeedb64f78cc89561060c0083 (diff)
Cleanup editing API
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r--crates/ra_assists/src/ast_transform.rs2
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
158pub fn apply<'a, N: AstNode>(transformer: &dyn AstTransform<'a>, node: N) -> N { 158pub 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())