Skip to content

Commit 48e614a

Browse files
committed
applease clippy
1 parent b595e19 commit 48e614a

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

src/bootstrap/src/core/build_steps/dist.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl Step for Docs {
7878

7979
let mut tarball = Tarball::new(builder, "rust-docs", &host.triple);
8080
tarball.set_product_name("Rust Documentation");
81-
tarball.add_bulk_dir(&builder.doc_out(host), dest);
81+
tarball.add_bulk_dir(builder.doc_out(host), dest);
8282
tarball.add_file(builder.src.join("src/doc/robots.txt"), dest, 0o644);
8383
Some(tarball.generate())
8484
}
@@ -117,7 +117,7 @@ impl Step for JsonDocs {
117117
let mut tarball = Tarball::new(builder, "rust-docs-json", &host.triple);
118118
tarball.set_product_name("Rust Documentation In JSON Format");
119119
tarball.is_preview(true);
120-
tarball.add_bulk_dir(&builder.json_doc_out(host), dest);
120+
tarball.add_bulk_dir(builder.json_doc_out(host), dest);
121121
Some(tarball.generate())
122122
}
123123
}
@@ -148,7 +148,7 @@ impl Step for RustcDocs {
148148

149149
let mut tarball = Tarball::new(builder, "rustc-docs", &host.triple);
150150
tarball.set_product_name("Rustc Documentation");
151-
tarball.add_bulk_dir(&builder.compiler_doc_out(host), "share/doc/rust/html/rustc");
151+
tarball.add_bulk_dir(builder.compiler_doc_out(host), "share/doc/rust/html/rustc");
152152
Some(tarball.generate())
153153
}
154154
}

src/bootstrap/src/core/build_steps/doc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ impl Step for Standalone {
378378
.arg(&favicon)
379379
.arg("--markdown-no-toc")
380380
.arg("--index-page")
381-
.arg(&builder.src.join("src/doc/index.md"))
381+
.arg(builder.src.join("src/doc/index.md"))
382382
.arg("--markdown-playground-url")
383383
.arg("https://play.rust-lang.org/")
384384
.arg("-o")
@@ -482,7 +482,7 @@ impl Step for Releases {
482482
.arg("--markdown-css")
483483
.arg("rust.css")
484484
.arg("--index-page")
485-
.arg(&builder.src.join("src/doc/index.md"))
485+
.arg(builder.src.join("src/doc/index.md"))
486486
.arg("--markdown-playground-url")
487487
.arg("https://play.rust-lang.org/")
488488
.arg("-o")

src/bootstrap/src/core/build_steps/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn rustfmt(src: &Path, rustfmt: &Path, paths: &[PathBuf], check: bool) -> impl F
1515
let mut cmd = Command::new(rustfmt);
1616
// Avoid the submodule config paths from coming into play. We only allow a single global config
1717
// for the workspace for now.
18-
cmd.arg("--config-path").arg(&src.canonicalize().unwrap());
18+
cmd.arg("--config-path").arg(src.canonicalize().unwrap());
1919
cmd.arg("--edition").arg("2021");
2020
cmd.arg("--unstable-features");
2121
cmd.arg("--skip-children");

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl Step for Cargo {
308308
// Forcibly disable tests using nightly features since any changes to
309309
// those features won't be able to land.
310310
cargo.env("CARGO_TEST_DISABLE_NIGHTLY", "1");
311-
cargo.env("PATH", &path_for_cargo(builder, compiler));
311+
cargo.env("PATH", path_for_cargo(builder, compiler));
312312

313313
#[cfg(feature = "build-metrics")]
314314
builder.metrics.begin_test_suite(
@@ -2559,7 +2559,7 @@ fn prepare_cargo_test(
25592559
cargo.arg("-p").arg(krate);
25602560
}
25612561

2562-
cargo.arg("--").args(&builder.config.test_args()).args(libtest_args);
2562+
cargo.arg("--").args(builder.config.test_args()).args(libtest_args);
25632563
if !builder.config.verbose_tests {
25642564
cargo.arg("--quiet");
25652565
}
@@ -3108,7 +3108,7 @@ impl Step for TierCheck {
31083108
&[],
31093109
);
31103110
cargo.arg(builder.src.join("src/doc/rustc/src/platform-support.md"));
3111-
cargo.arg(&builder.rustc(self.compiler));
3111+
cargo.arg(builder.rustc(self.compiler));
31123112
if builder.is_verbose() {
31133113
cargo.arg("--verbose");
31143114
}

src/bootstrap/src/core/build_steps/tool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ pub fn prepare_tool_cargo(
199199
cargo.env("CFG_COMMIT_DATE", date);
200200
}
201201
if !features.is_empty() {
202-
cargo.arg("--features").arg(&features.join(", "));
202+
cargo.arg("--features").arg(features.join(", "));
203203
}
204204

205205
// Enable internal lints for clippy and rustdoc

src/bootstrap/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ impl Build {
624624
self.config
625625
.git()
626626
.args(["config", "--file"])
627-
.arg(&self.config.src.join(".gitmodules"))
627+
.arg(self.config.src.join(".gitmodules"))
628628
.args(["--get-regexp", "path"]),
629629
);
630630
for line in output.lines() {

0 commit comments

Comments
 (0)