We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39774f1 commit b438d7dCopy full SHA for b438d7d
crates/cargo-gpu/src/show.rs
@@ -92,7 +92,7 @@ impl Show {
92
fn available_spirv_targets_iter() -> anyhow::Result<impl Iterator<Item = String>> {
93
let legacy_targets = legacy_target_specs::TARGET_SPECS
94
.iter()
95
- .map(|(spec, _src)| (*spec).to_string());
+ .map(|(spec, _src)| (*spec).to_owned());
96
97
let cache_dir = cache_dir()?;
98
if !cache_dir.exists() {
@@ -102,6 +102,11 @@ impl Show {
102
);
103
}
104
let entries = fs::read_dir(&cache_dir)?;
105
+
106
+ #[expect(
107
+ clippy::shadow_unrelated,
108
+ reason = "coz we use 'entry' in repeated nestings"
109
+ )]
110
let cached_targets: Vec<String> = entries
111
.flatten()
112
.flat_map(|entry| {
0 commit comments