Skip to content

Commit 2b829db

Browse files
committed
cargo clippy fixes
1 parent ac01da0 commit 2b829db

4 files changed

Lines changed: 4 additions & 4 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
}

crates/rustc_codegen_spirv/src/linker/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ fn without_header_eq(output: Module, expected: &str) {
228228
.join("\n");
229229

230230
if result != expected {
231-
println!("{}", &result);
231+
println!("{}", result);
232232
panic!(
233233
"assertion failed: `left == right`\
234234
\n\

0 commit comments

Comments
 (0)