Merge pull request #144 from tredoe/patch-1

Add Eq trait in main error
This commit is contained in:
Alex Crichton 2017-02-10 15:09:34 -06:00 committed by GitHub
commit 5906fa71b5

View file

@ -36,7 +36,7 @@ pub fn to_string<T: ?Sized>(value: &T) -> Result<String, Error>
}
/// Errors that can occur when serializing a type.
#[derive(Debug, Clone)]
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum Error {
/// Indicates that a Rust type was requested to be serialized but it was not
/// supported.