Skip to content

Commit 9459f7d

Browse files
author
Oliver Schneider
committed
style nitpicks
1 parent 0f02170 commit 9459f7d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc_trans/trans/consts.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ fn const_expr_unadjusted<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
635635
or string type, found {}",
636636
ty_to_string(cx.tcx(), bt)))
637637
};
638-
638+
639639
let len = llvm::LLVMConstIntGetZExtValue(len) as u64;
640640
let len = match bt.sty {
641641
ty::ty_uniq(ty) | ty::ty_rptr(_, ty::mt{ty, ..}) => match ty.sty {
@@ -664,8 +664,7 @@ fn const_expr_unadjusted<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
664664
&format!("constant indexing failed: {}", err.description()),
665665
),
666666
}
667-
},
668-
667+
}
669668
ast::ExprCast(ref base, _) => {
670669
let llty = type_of::type_of(cx, ety);
671670
let (v, basety) = const_expr(cx, &**base, param_substs);

0 commit comments

Comments
 (0)