Skip to content

Commit b8b271d

Browse files
committed
Remove unneeded variables
1 parent 77bb9a5 commit b8b271d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/ra_syntax/src/ast/edit.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,7 @@ impl ast::MatchArmList {
364364
Some(s) => s,
365365
None => start.clone(),
366366
};
367-
let res = self.replace_children(start..=end, &mut iter::empty());
368-
res
367+
self.replace_children(start..=end, &mut iter::empty())
369368
}
370369

371370
#[must_use]
@@ -411,8 +410,7 @@ impl ast::MatchArmList {
411410
let ws = tokens::WsBuilder::new(&format!("\n{}", indent));
412411
let to_insert: ArrayVec<[SyntaxElement; 2]> =
413412
[ws.ws().into(), item.syntax().clone().into()].into();
414-
let res = self.insert_children(position, to_insert);
415-
res
413+
self.insert_children(position, to_insert)
416414
}
417415
}
418416

0 commit comments

Comments
 (0)