Skip to content

Commit

Permalink
Rollup merge of rust-lang#47790 - tinaun:patch-1, r=sfackler
Browse files Browse the repository at this point in the history
derive PartialEq and Eq for `ParseCharError`

unlike the other Parse*Error types, ParseCharError didn't have these implemented for whatever reason
  • Loading branch information
kennytm committed Feb 9, 2018
2 parents e4fb971 + 838ddbf commit 2e28f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 2e28f98

Please sign in to comment.