Skip to content

Commit 6f939fe

Browse files
committed
cargo clippy fixes
1 parent 15cdf7d commit 6f939fe

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/cargo-gpu-install/src/install_toolchain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub fn run_cmd(cmd: &mut Command) -> anyhow::Result<(String, String)> {
148148
anyhow::bail!(
149149
"Command `{}` failed with {}:\n-- stdout\n{stdout}\n-- stderr\n{stderr}",
150150
fmt_cmd(),
151-
&output.status,
151+
output.status,
152152
);
153153
}
154154
Ok((stdout, stderr))

crates/cargo-gpu-install/src/spirv_source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl SpirvSource {
162162
Some(Self::Git { url, rev })
163163
};
164164
parse_git()
165-
.with_context(|| format!("Failed to parse git url {}", &source.repr))?
165+
.with_context(|| format!("Failed to parse git url {}", source.repr))?
166166
}
167167
(false, true) => Self::CratesIO(spirv_std_package.version.clone()),
168168
(false, false) => {

crates/rustc_codegen_spirv/src/linker/destructure_composites.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub fn destructure_composites(function: &mut Function) {
5757

5858
// Transitive closure computation
5959
let mut closed_rewrite_rules = rewrite_rules.clone();
60-
for (_, value) in closed_rewrite_rules.iter_mut() {
60+
for value in closed_rewrite_rules.values_mut() {
6161
while let Some(next) = rewrite_rules.get(value) {
6262
*value = *next;
6363
}

0 commit comments

Comments
 (0)