From 391b1886a7cd8826fa45cc546dfdb958cd8b8b99 Mon Sep 17 00:00:00 2001 From: Timon Post Date: Sat, 11 Jan 2020 18:16:45 +0100 Subject: [PATCH] Reverted exhaustive attribute change. --- src/error.rs | 3 ++- src/style/enums/attribute.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index f439ea1..d40c93e 100644 --- a/src/error.rs +++ b/src/error.rs @@ -11,7 +11,6 @@ use crate::impl_from; pub type Result = std::result::Result; /// Wrapper for all errors that can occur in `crossterm`. -#[non_exhaustive] #[derive(Debug)] pub enum ErrorKind { IoError(io::Error), @@ -19,6 +18,8 @@ pub enum ErrorKind { Utf8Error(std::string::FromUtf8Error), ParseIntError(std::num::ParseIntError), ResizingTerminalFailure(String), + #[doc(hidden)] + __Nonexhaustive, } impl std::error::Error for ErrorKind { diff --git a/src/style/enums/attribute.rs b/src/style/enums/attribute.rs index 1885118..5337626 100644 --- a/src/style/enums/attribute.rs +++ b/src/style/enums/attribute.rs @@ -56,7 +56,6 @@ use super::super::SetAttribute; /// println!("{}", "Negative text".negative()); /// ``` #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] -#[non_exhaustive] #[derive(Copy, Clone, Debug, PartialEq, Eq, Ord, PartialOrd, Hash)] pub enum Attribute { /// Resets all the attributes. @@ -109,6 +108,8 @@ pub enum Attribute { NotFramedOrEncircled = 54, /// Turns off the `OverLined` attribute. NotOverLined = 55, + #[doc(hidden)] + __Nonexhaustive, } impl Display for Attribute {