derive PartialEq and Eq for ParseCharError

unlike the other Parse*Error types, ParseCharError didn't have these implemented for whatever reason
This commit is contained in:
tinaun 2018-01-26 18:52:27 -05:00 committed by GitHub
parent bacb5c58df
commit 838ddbf908
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,7 +211,7 @@ impl From<u8> for char {
/// An error which can be returned when parsing a char.
#[stable(feature = "char_from_str", since = "1.20.0")]
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ParseCharError {
kind: CharErrorKind,
}