Commit a6d9c0aa authored by thiolliere's avatar thiolliere Committed by Bastian Köcher
Browse files

derive more stuff for error (#144)

parent c0a17b25
Pipeline #44919 passed with stages
in 13 minutes and 20 seconds
......@@ -39,12 +39,12 @@ use core::convert::TryFrom;
/// Descriptive error type
#[cfg(feature = "std")]
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Eq, Clone, Debug)]
pub struct Error(&'static str);
/// Undescriptive error type when compiled for no std
#[cfg(not(feature = "std"))]
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Eq, Clone, Debug)]
pub struct Error;
impl Error {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment