From f633c6e224ec33c5c24c60c3e58531b2becebeac Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 28 Jul 2022 21:19:08 +0200 Subject: [PATCH] Mark'Error' as non-exhaustive This simplifies semantic versionning constraints. --- src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error.rs b/src/error.rs index d4a2004..f95a38c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,5 +1,6 @@ /// A singular type for all errors that could happen when using this library. #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] +#[non_exhaustive] pub enum Error { InvalidFen, InvalidPosition,