Remove unneeded variables
This commit is contained in:
parent
77bb9a56f1
commit
b8b271d984
@ -364,8 +364,7 @@ fn strip_if_only_whitespace(&self) -> 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 @@ pub fn append_arm(&self, item: ast::MatchArm) -> 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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user