feat(error): mark Error enum as #[non_exhaustive]

This commit is contained in:
Manuel Raimann
2026-02-12 15:56:16 +01:00
parent cc50e1ad4b
commit 3d3dcb4c26
+1
View File
@@ -11,6 +11,7 @@
/// management. The [`TrialPruned`](Error::TrialPruned) variant has special
/// significance — it signals early stopping and is typically raised via
/// the [`TrialPruned`](super::TrialPruned) convenience type.
#[non_exhaustive]
#[derive(Debug, thiserror::Error)]
pub enum Error {
/// The lower bound exceeds the upper bound in a