mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user