Skip to content

Commit 838ddbf

Browse files
authored
derive PartialEq and Eq for ParseCharError
unlike the other Parse*Error types, ParseCharError didn't have these implemented for whatever reason
1 parent bacb5c5 commit 838ddbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/char.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl From<u8> for char {
211211

212212
/// An error which can be returned when parsing a char.
213213
#[stable(feature = "char_from_str", since = "1.20.0")]
214-
#[derive(Clone, Debug)]
214+
#[derive(Clone, Debug, PartialEq, Eq)]
215215
pub struct ParseCharError {
216216
kind: CharErrorKind,
217217
}

0 commit comments

Comments
 (0)