Skip to content

Commit 1a1f474

Browse files
committed
Fix style nits and some more
1 parent ece05d3 commit 1a1f474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/hair/cx/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ fn convert_arm<'a, 'tcx: 'a>(cx: &mut Cx<'a, 'tcx>, arm: &'tcx hir::Arm) -> Arm<
516516
fn convert_path_expr<'a, 'tcx: 'a>(cx: &mut Cx<'a, 'tcx>, expr: &'tcx hir::Expr) -> ExprKind<'tcx> {
517517
let substs = cx.tcx.mk_substs(cx.tcx.node_id_item_substs(expr.id).substs);
518518
// Otherwise there may be def_map borrow conflicts
519-
let def = { cx.tcx.def_map.borrow()[&expr.id].full_def() };
519+
let def = cx.tcx.def_map.borrow()[&expr.id].full_def();
520520
match def {
521521
def::DefVariant(_, def_id, false) |
522522
def::DefStruct(def_id) |

0 commit comments

Comments
 (0)