Skip to content

Commit 92109b1

Browse files
committed
Yet more neatening
1 parent 727731f commit 92109b1

File tree

1 file changed

+2
-4
lines changed
  • src/librustc/middle/trans

1 file changed

+2
-4
lines changed

src/librustc/middle/trans/adt.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,12 @@ fn range_to_inttype(cx: &mut CrateContext, hint: Hint, bounds: &IntBounds) -> In
326326
attempts = choose_shortest;
327327
}
328328
}
329-
let mut best = attr::UnsignedInt(ast::ty_u64);
330329
for &ity in attempts.iter() {
331330
if bounds_usable(cx, ity, bounds) {
332-
best = ity;
333-
break;
331+
return ity;
334332
}
335333
}
336-
return best;
334+
return attr::UnsignedInt(ast::ty_u64);
337335
}
338336

339337
pub fn ll_inttype(cx: &mut CrateContext, ity: IntType) -> Type {

0 commit comments

Comments
 (0)