Fix checks from #2009 (#2023)

This commit is contained in:
Austin Johnson 2022-10-06 03:53:50 -05:00 committed by GitHub
parent 2992f0d0fc
commit f99c67929f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -309,7 +309,9 @@ where
true,
) {
Ok(_) => (),
Err(AccessCheckError::Unknown) => return Err(AccessError::SwapchainImageNotAcquired.into()),
Err(AccessCheckError::Unknown) => {
return Err(AccessError::SwapchainImageNotAcquired.into())
}
Err(AccessCheckError::Denied(e)) => return Err(e.into()),
}
}

View File

@ -287,9 +287,7 @@ where
Err(AccessCheckError::Denied(e1))
} // TODO: which one?
(Ok(_), Err(AccessCheckError::Denied(_)))
| (Err(AccessCheckError::Denied(_)), Ok(_)) => {
panic!("Contradictory information between two futures")
}
| (Err(AccessCheckError::Denied(_)), Ok(_)) => Ok(()),
(Ok(_), Ok(_)) => Ok(()), // TODO: Double Acquired?
}
}