mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
Remove redundant let binding (#6356)
This commit is contained in:
parent
6db097694c
commit
c9202ee54a
@ -437,13 +437,11 @@ impl Device {
|
||||
.last_successful_submission_index
|
||||
.load(Ordering::Acquire);
|
||||
|
||||
if let wgt::Maintain::WaitForSubmissionIndex(submission_index) = maintain {
|
||||
if submission_index > last_successful_submission_index {
|
||||
return Err(WaitIdleError::WrongSubmissionIndex(
|
||||
submission_index,
|
||||
last_successful_submission_index,
|
||||
));
|
||||
}
|
||||
if submission_index > last_successful_submission_index {
|
||||
return Err(WaitIdleError::WrongSubmissionIndex(
|
||||
submission_index,
|
||||
last_successful_submission_index,
|
||||
));
|
||||
}
|
||||
|
||||
submission_index
|
||||
|
Loading…
Reference in New Issue
Block a user