rt: mark error types as non_exhaustive

This commit is contained in:
chyyran 2024-08-21 00:37:35 -04:00 committed by Ronny Chan
parent e6d23f1d8f
commit 763c05755d
7 changed files with 7 additions and 0 deletions

View file

@ -8,6 +8,7 @@ use thiserror::Error;
/// Cumulative error type for Direct3D11 filter chains. /// Cumulative error type for Direct3D11 filter chains.
#[derive(Error, Debug)] #[derive(Error, Debug)]
#[non_exhaustive]
pub enum FilterChainError { pub enum FilterChainError {
#[error("invariant assumption about d3d11 did not hold. report this as an issue.")] #[error("invariant assumption about d3d11 did not hold. report this as an issue.")]
Direct3DOperationError(&'static str), Direct3DOperationError(&'static str),

View file

@ -6,6 +6,7 @@ use thiserror::Error;
/// Cumulative error type for Direct3D12 filter chains. /// Cumulative error type for Direct3D12 filter chains.
#[derive(Error, Debug)] #[derive(Error, Debug)]
#[non_exhaustive]
pub enum FilterChainError { pub enum FilterChainError {
#[error("invariant assumption about d3d12 did not hold. report this as an issue.")] #[error("invariant assumption about d3d12 did not hold. report this as an issue.")]
Direct3DOperationError(&'static str), Direct3DOperationError(&'static str),

View file

@ -9,6 +9,7 @@ use thiserror::Error;
/// Cumulative error type for Direct3D11 filter chains. /// Cumulative error type for Direct3D11 filter chains.
#[derive(Error, Debug)] #[derive(Error, Debug)]
#[non_exhaustive]
pub enum FilterChainError { pub enum FilterChainError {
#[error("invariant assumption about d3d11 did not hold. report this as an issue.")] #[error("invariant assumption about d3d11 did not hold. report this as an issue.")]
Direct3DOperationError(&'static str), Direct3DOperationError(&'static str),

View file

@ -8,6 +8,7 @@ use thiserror::Error;
/// Cumulative error type for OpenGL filter chains. /// Cumulative error type for OpenGL filter chains.
#[derive(Error, Debug)] #[derive(Error, Debug)]
#[non_exhaustive]
pub enum FilterChainError { pub enum FilterChainError {
#[error("fbo initialization error")] #[error("fbo initialization error")]
FramebufferInit(u32), FramebufferInit(u32),

View file

@ -10,6 +10,7 @@ use thiserror::Error;
/// Cumulative error type for Metal filter chains. /// Cumulative error type for Metal filter chains.
#[derive(Error, Debug)] #[derive(Error, Debug)]
#[non_exhaustive]
pub enum FilterChainError { pub enum FilterChainError {
#[error("shader preset parse error")] #[error("shader preset parse error")]
ShaderPresetError(#[from] ParsePresetError), ShaderPresetError(#[from] ParsePresetError),

View file

@ -9,6 +9,7 @@ use thiserror::Error;
/// Cumulative error type for Vulkan filter chains. /// Cumulative error type for Vulkan filter chains.
#[derive(Error, Debug)] #[derive(Error, Debug)]
#[non_exhaustive]
pub enum FilterChainError { pub enum FilterChainError {
#[error("shader preset parse error")] #[error("shader preset parse error")]
ShaderPresetError(#[from] ParsePresetError), ShaderPresetError(#[from] ParsePresetError),

View file

@ -7,6 +7,7 @@ use thiserror::Error;
/// Cumulative error type for wgpu filter chains. /// Cumulative error type for wgpu filter chains.
#[derive(Error, Debug)] #[derive(Error, Debug)]
#[non_exhaustive]
pub enum FilterChainError { pub enum FilterChainError {
#[error("shader preset parse error")] #[error("shader preset parse error")]
ShaderPresetError(#[from] ParsePresetError), ShaderPresetError(#[from] ParsePresetError),