1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

format: add some blank lines where it was needed

This commit is contained in:
Emil Ernerfeldt
2023-02-10 18:03:16 +01:00
parent 409fb968d3
commit 530e9f667c
14 changed files with 50 additions and 0 deletions

View File

@@ -105,11 +105,13 @@ pub enum WgpuError {
DeviceError(wgpu::RequestDeviceError),
SurfaceError(wgpu::CreateSurfaceError),
}
impl std::fmt::Display for WgpuError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
std::fmt::Debug::fmt(self, f)
}
}
impl std::error::Error for WgpuError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match self {
@@ -118,11 +120,13 @@ impl std::error::Error for WgpuError {
}
}
}
impl From<wgpu::RequestDeviceError> for WgpuError {
fn from(e: wgpu::RequestDeviceError) -> Self {
Self::DeviceError(e)
}
}
impl From<wgpu::CreateSurfaceError> for WgpuError {
fn from(e: wgpu::CreateSurfaceError) -> Self {
Self::SurfaceError(e)