rt: mark error types as non_exhaustive
This commit is contained in:
parent
e6d23f1d8f
commit
763c05755d
|
@ -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),
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue