From 3d3dcb4c2689e892e7aaf93df0b5db0b3cad6c3b Mon Sep 17 00:00:00 2001 From: Manuel Raimann Date: Thu, 12 Feb 2026 15:56:16 +0100 Subject: [PATCH] feat(error): mark Error enum as #[non_exhaustive] --- src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error.rs b/src/error.rs index 70b2d98..d34db2f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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