From f76a1d142007a15bcc0e272acba4b29976dcda4c Mon Sep 17 00:00:00 2001 From: Volodymyr Orlov Date: Thu, 17 Dec 2020 13:01:45 -0800 Subject: [PATCH] feat: makes smartcore::error:FailedError non-exhaustive --- src/error/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error/mod.rs b/src/error/mod.rs index 1615290..2409889 100644 --- a/src/error/mod.rs +++ b/src/error/mod.rs @@ -12,6 +12,7 @@ pub struct Failed { } /// Type of error +#[non_exhaustive] #[derive(Copy, Clone, Debug, Serialize, Deserialize)] pub enum FailedError { /// Can't fit algorithm to data