Remove thiserror
from bevy_core_pipeline
(#15775)
# Objective - Contributes to #15460 ## Solution - Removed `thiserror` from `bevy_core_pipeline`
This commit is contained in:
parent
284e36af5e
commit
4c76ea7a5a
@ -41,7 +41,11 @@ bitflags = "2.3"
|
|||||||
radsort = "0.1"
|
radsort = "0.1"
|
||||||
nonmax = "0.5"
|
nonmax = "0.5"
|
||||||
smallvec = "1"
|
smallvec = "1"
|
||||||
thiserror = "1.0"
|
derive_more = { version = "1", default-features = false, features = [
|
||||||
|
"error",
|
||||||
|
"from",
|
||||||
|
"display",
|
||||||
|
] }
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
@ -10,7 +10,7 @@ use bevy_render::{
|
|||||||
},
|
},
|
||||||
renderer::{RenderDevice, RenderQueue},
|
renderer::{RenderDevice, RenderQueue},
|
||||||
};
|
};
|
||||||
use thiserror::Error;
|
use derive_more::derive::{Display, Error};
|
||||||
|
|
||||||
const LUT_SIZE: usize = 256;
|
const LUT_SIZE: usize = 256;
|
||||||
|
|
||||||
@ -40,16 +40,16 @@ pub struct AutoExposureCompensationCurve {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Various errors that can occur when constructing an [`AutoExposureCompensationCurve`].
|
/// Various errors that can occur when constructing an [`AutoExposureCompensationCurve`].
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Display, Debug)]
|
||||||
pub enum AutoExposureCompensationCurveError {
|
pub enum AutoExposureCompensationCurveError {
|
||||||
/// The curve couldn't be built in the first place.
|
/// The curve couldn't be built in the first place.
|
||||||
#[error("curve could not be constructed from the given data")]
|
#[display("curve could not be constructed from the given data")]
|
||||||
InvalidCurve,
|
InvalidCurve,
|
||||||
/// A discontinuity was found in the curve.
|
/// A discontinuity was found in the curve.
|
||||||
#[error("discontinuity found between curve segments")]
|
#[display("discontinuity found between curve segments")]
|
||||||
DiscontinuityFound,
|
DiscontinuityFound,
|
||||||
/// The curve is not monotonically increasing on the x-axis.
|
/// The curve is not monotonically increasing on the x-axis.
|
||||||
#[error("curve is not monotonically increasing on the x-axis")]
|
#[display("curve is not monotonically increasing on the x-axis")]
|
||||||
NotMonotonic,
|
NotMonotonic,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user