Iterate the pull-model lane's colour attachments instead of indexing them
The nightly's clippy (needless_range_loop) flags the index loop, which compiles only under --cfg m2v_gpu, so the earlier sweep's plain clippy did not see it. Verified: RUSTFLAGS='--cfg m2v_gpu' cargo clippy --workspace --all-targets --all-features -- -D warnings clean on nightly-2026-11-03.
This commit is contained in:
1 parent
a1e7576139
commit
7dbedfd151
1 file changed
+2
-2
@@ -319,8 +319,8 @@ impl Lane {
|
||||
fn descriptor(&self, draw: &Draw, n: u32) -> RenderPipelineDescriptor {
|
||||
let mut d = RenderPipelineDescriptor::new(self.function("pm_place"));
|
||||
d.fragment = Some(self.function(draw.function));
|
||||
for i in 0..draw.reads.len() {
|
||||
d.color_attachments[i] = Some(ColorAttachmentDescriptor::new(draw.format));
|
||||
for slot in d.color_attachments.iter_mut().take(draw.reads.len()) {
|
||||
*slot = Some(ColorAttachmentDescriptor::new(draw.format));
|
||||
}
|
||||
d.raster_sample_count = n;
|
||||
d
|
||||
|
||||
Reference in new issue
Block a user