Skip to content

Commit bf94b38

Browse files
committed
Rustfmt
1 parent 7ec4471 commit bf94b38

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

src/bin/cg_clif.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@ impl rustc_driver::Callbacks for CraneliftPassesCallbacks {
2626

2727
config.opts.cg.panic = Some(PanicStrategy::Abort);
2828
config.opts.debugging_opts.panic_abort_tests = true;
29-
config.opts.maybe_sysroot = Some(
30-
config.opts.maybe_sysroot.clone().unwrap_or_else(
31-
|| std::env::current_exe()
32-
.unwrap()
33-
.parent()
34-
.unwrap()
35-
.parent()
36-
.unwrap()
37-
.to_owned(),
38-
),
39-
);
29+
config.opts.maybe_sysroot = Some(config.opts.maybe_sysroot.clone().unwrap_or_else(|| {
30+
std::env::current_exe()
31+
.unwrap()
32+
.parent()
33+
.unwrap()
34+
.parent()
35+
.unwrap()
36+
.to_owned()
37+
}));
4038
}
4139
}
4240

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl<'tcx, M: Module> FunctionCx<'_, 'tcx, M> {
364364
self.instance.subst_mir_and_normalize_erasing_regions(
365365
self.tcx,
366366
ty::ParamEnv::reveal_all(),
367-
value
367+
value,
368368
)
369369
}
370370

0 commit comments

Comments
 (0)