Remove unused error variant

This commit is contained in:
Hanno Braun 2023-02-14 12:23:12 +01:00
parent 107a0c34c2
commit 0ed019fa58

View File

@ -3,7 +3,6 @@ use std::{io, mem::size_of};
use thiserror::Error;
use tracing::debug;
use wgpu::util::DeviceExt as _;
use wgpu_glyph::ab_glyph::InvalidFont;
use crate::{
camera::Camera,
@ -420,12 +419,6 @@ pub enum RendererInitError {
/// See: [wgpu::RequestDeviceError](https://docs.rs/wgpu/latest/wgpu/struct.RequestDeviceError.html)
#[error("Error requesting device: {0}")]
RequestDevice(#[from] wgpu::RequestDeviceError),
/// Error loading font
///
/// See: [ab_glyph::InvalidFont](https://docs.rs/ab_glyph/latest/ab_glyph/struct.InvalidFont.html)
#[error("Error loading font: {0}")]
InvalidFont(#[from] InvalidFont),
}
/// Graphics rendering error