Remove unneeded variables

This commit is contained in:
Matthew Hall 2020-03-29 12:32:01 +01:00
parent 77bb9a56f1
commit b8b271d984

View file

@ -364,8 +364,7 @@ impl ast::MatchArmList {
Some(s) => s, Some(s) => s,
None => start.clone(), None => start.clone(),
}; };
let res = self.replace_children(start..=end, &mut iter::empty()); self.replace_children(start..=end, &mut iter::empty())
res
} }
#[must_use] #[must_use]
@ -411,8 +410,7 @@ impl ast::MatchArmList {
let ws = tokens::WsBuilder::new(&format!("\n{}", indent)); let ws = tokens::WsBuilder::new(&format!("\n{}", indent));
let to_insert: ArrayVec<[SyntaxElement; 2]> = let to_insert: ArrayVec<[SyntaxElement; 2]> =
[ws.ws().into(), item.syntax().clone().into()].into(); [ws.ws().into(), item.syntax().clone().into()].into();
let res = self.insert_children(position, to_insert); self.insert_children(position, to_insert)
res
} }
} }