aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/ast/edit.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/ast/edit.rs b/crates/ra_syntax/src/ast/edit.rs
index 437186888..fae259411 100644
--- a/crates/ra_syntax/src/ast/edit.rs
+++ b/crates/ra_syntax/src/ast/edit.rs
@@ -364,8 +364,7 @@ impl ast::MatchArmList {
364 Some(s) => s, 364 Some(s) => s,
365 None => start.clone(), 365 None => start.clone(),
366 }; 366 };
367 let res = self.replace_children(start..=end, &mut iter::empty()); 367 self.replace_children(start..=end, &mut iter::empty())
368 res
369 } 368 }
370 369
371 #[must_use] 370 #[must_use]
@@ -411,8 +410,7 @@ impl ast::MatchArmList {
411 let ws = tokens::WsBuilder::new(&format!("\n{}", indent)); 410 let ws = tokens::WsBuilder::new(&format!("\n{}", indent));
412 let to_insert: ArrayVec<[SyntaxElement; 2]> = 411 let to_insert: ArrayVec<[SyntaxElement; 2]> =
413 [ws.ws().into(), item.syntax().clone().into()].into(); 412 [ws.ws().into(), item.syntax().clone().into()].into();
414 let res = self.insert_children(position, to_insert); 413 self.insert_children(position, to_insert)
415 res
416 } 414 }
417} 415}
418 416