From b8b271d98485f822ab45ff9a89090c267a2d62c6 Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Sun, 29 Mar 2020 12:32:01 +0100 Subject: Remove unneeded variables --- crates/ra_syntax/src/ast/edit.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crates/ra_syntax/src') 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 { Some(s) => s, None => start.clone(), }; - let res = self.replace_children(start..=end, &mut iter::empty()); - res + self.replace_children(start..=end, &mut iter::empty()) } #[must_use] @@ -411,8 +410,7 @@ impl ast::MatchArmList { let ws = tokens::WsBuilder::new(&format!("\n{}", indent)); let to_insert: ArrayVec<[SyntaxElement; 2]> = [ws.ws().into(), item.syntax().clone().into()].into(); - let res = self.insert_children(position, to_insert); - res + self.insert_children(position, to_insert) } } -- cgit v1.2.3