Skip to content

Commit c9aa8af

Browse files
committed
Fix Clippy lints in bootstrap
1 parent c397cd3 commit c9aa8af

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/bootstrap/src/core/build_steps/perf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Consider setting `rust.debuginfo-level = 1` in `bootstrap.toml`."#);
196196
apply_shared_opts(&mut cmd, opts);
197197
cmd.run(builder);
198198

199-
println!("You can find the results at `{}`", &results_dir.display());
199+
println!("You can find the results at `{}`", results_dir.display());
200200
}
201201
PerfCommand::Benchmark { id, opts } => {
202202
cmd.arg("bench_local");

src/bootstrap/src/core/build_steps/setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ fn attempt_toolchain_link(builder: &Builder<'_>, stage_path: &str) {
312312
eprintln!(
313313
"To manually link stage 1 build to `stage1` toolchain, run:\n
314314
`rustup toolchain link stage1 {}`",
315-
&stage_path
315+
stage_path
316316
);
317317
}
318318
}

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,9 +1349,9 @@ impl Step for Tidy {
13491349
/// for the `dev` or `nightly` channels.
13501350
fn run(self, builder: &Builder<'_>) {
13511351
let mut cmd = builder.tool_cmd(Tool::Tidy);
1352-
cmd.arg(format!("--root-path={}", &builder.src.display()));
1353-
cmd.arg(format!("--cargo-path={}", &builder.initial_cargo.display()));
1354-
cmd.arg(format!("--output-dir={}", &builder.out.display()));
1352+
cmd.arg(format!("--root-path={}", builder.src.display()));
1353+
cmd.arg(format!("--cargo-path={}", builder.initial_cargo.display()));
1354+
cmd.arg(format!("--output-dir={}", builder.out.display()));
13551355
// Tidy is heavily IO constrained. Still respect `-j`, but use a higher limit if `jobs` hasn't been configured.
13561356
let jobs = builder.config.jobs.unwrap_or_else(|| {
13571357
8 * std::thread::available_parallelism().map_or(1, std::num::NonZeroUsize::get) as u32
@@ -2576,7 +2576,7 @@ Please disable assertions with `rust.debug-assertions = false`.
25762576

25772577
builder.info(&format!(
25782578
"Check compiletest suite={} mode={} compare_mode={} ({} -> {})",
2579-
suite, mode, compare_mode, &test_compiler.host, target
2579+
suite, mode, compare_mode, test_compiler.host, target
25802580
));
25812581
let _time = helpers::timeit(builder);
25822582
try_run_tests(builder, &mut cmd, false);

0 commit comments

Comments
 (0)