diff options
author | Matthew Hall <[email protected]> | 2020-03-29 12:32:01 +0100 |
---|---|---|
committer | Matthew Hall <[email protected]> | 2020-03-29 12:32:01 +0100 |
commit | b8b271d98485f822ab45ff9a89090c267a2d62c6 (patch) | |
tree | 6e64f41634aa4e6a682e8671dacac18cbaa06fed /crates | |
parent | 77bb9a56f10d609a85fc4a420f5cc61fa84fae2a (diff) |
Remove unneeded variables
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_syntax/src/ast/edit.rs | 6 |
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 | ||