Remove a redundant .into().

This commit is contained in:
Dan Gohman
2017-11-08 10:40:52 -08:00
parent 3ab4349c1b
commit 0d825b4643

View File

@@ -177,7 +177,7 @@ pub trait TargetIsa {
ctrl_typevar: ir::Type,
) -> Result<Encoding, Legalize> {
let mut iter = self.legal_encodings(dfg, inst, ctrl_typevar);
iter.next().ok_or_else(|| iter.legalize().into())
iter.next().ok_or_else(|| iter.legalize())
}
/// Get a data structure describing the instruction encodings in this ISA.