We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77bb9a5 commit b8b271dCopy full SHA for b8b271d
crates/ra_syntax/src/ast/edit.rs
@@ -364,8 +364,7 @@ impl ast::MatchArmList {
364
Some(s) => s,
365
None => start.clone(),
366
};
367
- let res = self.replace_children(start..=end, &mut iter::empty());
368
- res
+ self.replace_children(start..=end, &mut iter::empty())
369
}
370
371
#[must_use]
@@ -411,8 +410,7 @@ impl ast::MatchArmList {
411
410
let ws = tokens::WsBuilder::new(&format!("\n{}", indent));
412
let to_insert: ArrayVec<[SyntaxElement; 2]> =
413
[ws.ws().into(), item.syntax().clone().into()].into();
414
- let res = self.insert_children(position, to_insert);
415
+ self.insert_children(position, to_insert)
416
417
418
0 commit comments