diff options
| author | kennytm <kennytm@gmail.com> | 2018-02-10 14:23:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-10 14:23:53 +0800 |
| commit | 6bbee8de86b54b9e3ea45f60477e994934c84187 (patch) | |
| tree | b86dbcce1694b91eaa7fcc178cb609fe7b7b26c0 /src/libcore | |
| parent | 39abcc04139a0fd24422f422271849dc91e39a88 (diff) | |
| parent | 838ddbf908f63a0a3d8629d9dc16592a27a8ba30 (diff) | |
| download | rust-6bbee8de86b54b9e3ea45f60477e994934c84187.tar.gz rust-6bbee8de86b54b9e3ea45f60477e994934c84187.zip | |
Rollup merge of #47790 - tinaun:patch-1, r=sfackler
derive PartialEq and Eq for `ParseCharError` unlike the other Parse*Error types, ParseCharError didn't have these implemented for whatever reason
Diffstat (limited to 'src/libcore')
| -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, } |
