Skip to content

Commit 7b362bb

Browse files
committed
Fixup style
1 parent 59291dc commit 7b362bb

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

src/bootstrap/builder.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,12 @@ impl<'a> Builder<'a> {
588588
/// sysroot.
589589
///
590590
/// See `force_use_stage1` for documentation on what each argument is.
591-
pub fn compiler_for(&self, stage: u32, host: Interned<String>, target: Interned<String>) -> Compiler {
591+
pub fn compiler_for(
592+
&self,
593+
stage: u32,
594+
host: Interned<String>,
595+
target: Interned<String>,
596+
) -> Compiler {
592597
if self.build.force_use_stage1(Compiler { stage, host }, target) {
593598
self.compiler(1, self.config.build)
594599
} else {

src/bootstrap/install.rs

+19-8
Original file line numberDiff line numberDiff line change
@@ -210,32 +210,43 @@ install!((self, builder, _config),
210210
Self::should_install(builder) {
211211
install_rls(builder, self.compiler.stage, self.target);
212212
} else {
213-
builder.info(&format!("skipping Install RLS stage{} ({})", self.compiler.stage, self.target));
213+
builder.info(
214+
&format!("skipping Install RLS stage{} ({})", self.compiler.stage, self.target),
215+
);
214216
}
215217
};
216218
Clippy, "clippy", Self::should_build(_config), only_hosts: true, {
217-
if builder.ensure(dist::Clippy { compiler: self.compiler, target: self.target }).is_some() ||
218-
Self::should_install(builder) {
219+
if builder.ensure(dist::Clippy {
220+
compiler: self.compiler,
221+
target: self.target,
222+
}).is_some() || Self::should_install(builder) {
219223
install_clippy(builder, self.compiler.stage, self.target);
220224
} else {
221-
builder.info(&format!("skipping Install clippy stage{} ({})", self.compiler.stage, self.target));
225+
builder.info(
226+
&format!("skipping Install clippy stage{} ({})", self.compiler.stage, self.target),
227+
);
222228
}
223229
};
224230
Miri, "miri", Self::should_build(_config), only_hosts: true, {
225231
if builder.ensure(dist::Miri { compiler: self.compiler, target: self.target }).is_some() ||
226232
Self::should_install(builder) {
227233
install_miri(builder, self.compiler.stage, self.target);
228234
} else {
229-
builder.info(&format!("skipping Install miri stage{} ({})", self.compiler.stage, self.target));
235+
builder.info(
236+
&format!("skipping Install miri stage{} ({})", self.compiler.stage, self.target),
237+
);
230238
}
231239
};
232240
Rustfmt, "rustfmt", Self::should_build(_config), only_hosts: true, {
233-
if builder.ensure(dist::Rustfmt { compiler: self.compiler, target: self.target }).is_some() ||
234-
Self::should_install(builder) {
241+
if builder.ensure(dist::Rustfmt {
242+
compiler: self.compiler,
243+
target: self.target
244+
}).is_some() || Self::should_install(builder) {
235245
install_rustfmt(builder, self.compiler.stage, self.target);
236246
} else {
237247
builder.info(
238-
&format!("skipping Install Rustfmt stage{} ({})", self.compiler.stage, self.target));
248+
&format!("skipping Install Rustfmt stage{} ({})", self.compiler.stage, self.target),
249+
);
239250
}
240251
};
241252
Analysis, "analysis", Self::should_build(_config), only_hosts: false, {

0 commit comments

Comments
 (0)