1
0
Fork 0
forked from wry/wry

all: use let chains

This commit is contained in:
Julian Orth 2025-07-01 11:20:48 +02:00
parent 3d5d146d65
commit 286857971a
89 changed files with 1516 additions and 1574 deletions

View file

@ -669,10 +669,10 @@ impl VulkanBoMapping {
impl Drop for VulkanBoMapping {
fn drop(&mut self) {
if self.upload {
if let Err(e) = self.upload() {
log::error!("Could not upload to image: {}", ErrorFmt(e));
}
if self.upload
&& let Err(e) = self.upload()
{
log::error!("Could not upload to image: {}", ErrorFmt(e));
}
}
}
@ -721,10 +721,10 @@ fn validate_modifier(
if disjoint && !modifier.features.contains(FormatFeatureFlags::DISJOINT) {
return false;
}
if let Some(plane_count) = plane_count {
if plane_count != modifier.planes {
return false;
}
if let Some(plane_count) = plane_count
&& plane_count != modifier.planes
{
return false;
}
let Some(limits) = modifier.transfer_limits else {
return false;