Re-encode: the encoder's last part read from the back
Clippy's double_ended_iterator_last on 14854f2473's lint job.
This commit is contained in:
1 parent
834819bdb6
commit
490db00052
1 file changed
+1
-1
@@ -180,7 +180,7 @@ impl CommandBufferShared {
|
||||
.filter(|(_, part)| part.encoder == at)
|
||||
.map(|(index, _)| index);
|
||||
let first = parts.next().unwrap_or(state.recorded.len());
|
||||
let parts = first..parts.last().map_or(first + 1, |last| last + 1);
|
||||
let parts = first..parts.next_back().map_or(first + 1, |last| last + 1);
|
||||
(state.residency_before(at, replay.kind()), runs, parts)
|
||||
};
|
||||
let run = with_faces_as_of(device, (self.address(), parts), || {
|
||||
|
||||
Reference in new issue
Block a user