Tidy up unneeded commmas.

This commit is contained in:
Dan Gohman
2018-05-24 13:14:10 -07:00
parent 191bab162b
commit d46ceedc98

View File

@@ -79,11 +79,11 @@ impl binemit::CodeSink for TextSink {
name: &ir::ExternalName, name: &ir::ExternalName,
addend: binemit::Addend, addend: binemit::Addend,
) { ) {
write!(self.text, "{}({}", reloc, name,).unwrap(); write!(self.text, "{}({}", reloc, name).unwrap();
if addend != 0 { if addend != 0 {
write!(self.text, "{:+}", addend,).unwrap(); write!(self.text, "{:+}", addend).unwrap();
} }
write!(self.text, ") ",).unwrap(); write!(self.text, ") ").unwrap();
} }
fn reloc_jt(&mut self, reloc: binemit::Reloc, jt: ir::JumpTable) { fn reloc_jt(&mut self, reloc: binemit::Reloc, jt: ir::JumpTable) {