chore: satisfy clippy::manual_unwrap_or_default

This only fires with Rust 1.83 or newer, but we can preempt this case
with our current MSRV.
This commit is contained in:
Erich Gubler
2024-11-24 15:05:22 -05:00
parent 13a533022e
commit e9b340d4d0

View File

@@ -711,13 +711,9 @@ impl crate::Context for ContextWgpuCore {
surface_data: &Self::SurfaceData,
adapter_data: &Self::AdapterData,
) -> wgt::SurfaceCapabilities {
match self
.0
self.0
.surface_get_capabilities(surface_data.id, *adapter_data)
{
Ok(caps) => caps,
Err(_) => wgt::SurfaceCapabilities::default(),
}
.unwrap_or_default()
}
fn surface_configure(