feat(error): mark Error enum as #[non_exhaustive]
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
/// management. The [`TrialPruned`](Error::TrialPruned) variant has special
|
/// management. The [`TrialPruned`](Error::TrialPruned) variant has special
|
||||||
/// significance — it signals early stopping and is typically raised via
|
/// significance — it signals early stopping and is typically raised via
|
||||||
/// the [`TrialPruned`](super::TrialPruned) convenience type.
|
/// the [`TrialPruned`](super::TrialPruned) convenience type.
|
||||||
|
#[non_exhaustive]
|
||||||
#[derive(Debug, thiserror::Error)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
/// The lower bound exceeds the upper bound in a
|
/// The lower bound exceeds the upper bound in a
|
||||||
|
|||||||
Reference in New Issue
Block a user