Skip to content

Commit b438d7d

Browse files
committed
chore: silence clippy
1 parent 39774f1 commit b438d7d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/cargo-gpu/src/show.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl Show {
9292
fn available_spirv_targets_iter() -> anyhow::Result<impl Iterator<Item = String>> {
9393
let legacy_targets = legacy_target_specs::TARGET_SPECS
9494
.iter()
95-
.map(|(spec, _src)| (*spec).to_string());
95+
.map(|(spec, _src)| (*spec).to_owned());
9696

9797
let cache_dir = cache_dir()?;
9898
if !cache_dir.exists() {
@@ -102,6 +102,11 @@ impl Show {
102102
);
103103
}
104104
let entries = fs::read_dir(&cache_dir)?;
105+
106+
#[expect(
107+
clippy::shadow_unrelated,
108+
reason = "coz we use 'entry' in repeated nestings"
109+
)]
105110
let cached_targets: Vec<String> = entries
106111
.flatten()
107112
.flat_map(|entry| {

0 commit comments

Comments
 (0)