Skip to content

Commit

Permalink
Merge pull request rust-lang#2013 from lzutao/let-unit
Browse files Browse the repository at this point in the history
Fix some clippy warnings
  • Loading branch information
kinnison authored Sep 25, 2019
2 parents 489fa58 + 9a4c5d8 commit 47faf31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ fn remove_extension_not_in_manifest_but_is_already_installed() {
&|url, toolchain, prefix, download_cfg, temp_cfg| {
change_channel_date(url, "nightly", "2016-02-01");

let ref adds = vec![Component::new(
let adds = [Component::new(
"bonus".to_string(),
Some(TargetTriple::new("x86_64-apple-darwin")),
true,
Expand Down
4 changes: 2 additions & 2 deletions tests/mock/clitools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,15 +534,15 @@ impl Release {
// Same for v1 manifests. These are just the installers.
let host_triple = this_host_triple();

let _ = hard_link(
hard_link(
path.join(format!(
"dist/{}/rust-stable-{}.tar.gz",
self.date, host_triple
)),
path.join(format!("dist/rust-{}-{}.tar.gz", self.version, host_triple)),
)
.unwrap();
let _ = hard_link(
hard_link(
path.join(format!(
"dist/{}/rust-stable-{}.tar.gz.sha256",
self.date, host_triple
Expand Down

0 comments on commit 47faf31

Please sign in to comment.