Skip to content

Commit 40dfca7

Browse files
Merge pull request #40 from smartcorelib/non_exhaustive_failure
feat: makes smartcore::error:FailedError non-exhaustive
2 parents d8d7519 + f76a1d1 commit 40dfca7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/error/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub struct Failed {
1212
}
1313

1414
/// Type of error
15+
#[non_exhaustive]
1516
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
1617
pub enum FailedError {
1718
/// Can't fit algorithm to data

0 commit comments

Comments
 (0)