Style: Don't use else after a return.

This commit is contained in:
Dan Gohman
2018-03-05 14:34:35 -08:00
parent ae0801e23b
commit b1697dd1dc

View File

@@ -271,13 +271,12 @@ impl SubTest for TestBinEmit {
"No encodings found for: {}",
func.dfg.display_inst(inst, isa)
));
} else {
return Err(format!(
}
return Err(format!(
"No matching encodings for {} in {}",
func.dfg.display_inst(inst, isa),
DisplayList(&encodings),
));
}
}
let have = sink.text.trim();
if have != want {