diff options
| author | tinaun <tinagma@gmail.com> | 2018-01-26 18:52:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-26 18:52:27 -0500 |
| commit | 838ddbf908f63a0a3d8629d9dc16592a27a8ba30 (patch) | |
| tree | ba4c565595ca1c0856e0de59dd02af3f9c5fd425 | |
| parent | bacb5c58dfdde7c35e99b2b0d8171238cc33cf6c (diff) | |
| download | rust-838ddbf908f63a0a3d8629d9dc16592a27a8ba30.tar.gz rust-838ddbf908f63a0a3d8629d9dc16592a27a8ba30.zip | |
derive PartialEq and Eq for `ParseCharError`
unlike the other Parse*Error types, ParseCharError didn't have these implemented for whatever reason
| -rw-r--r-- | src/libcore/char.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/char.rs b/src/libcore/char.rs index e8b81db0706..7215bd2a476 100644 --- a/src/libcore/char.rs +++ b/src/libcore/char.rs @@ -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, } |
