@@ -146,19 +146,19 @@ pub struct CStr {
146
146
147
147
/// An error returned from `CString::new` to indicate that a nul byte was found
148
148
/// in the vector provided.
149
- #[ derive( Clone , PartialEq , Debug ) ]
149
+ #[ derive( Clone , PartialEq , Eq , Debug ) ]
150
150
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
151
151
pub struct NulError ( usize , Vec < u8 > ) ;
152
152
153
153
/// An error returned from `CStr::from_bytes_with_nul` to indicate that a nul
154
154
/// byte was found too early in the slice provided or one wasn't found at all.
155
- #[ derive( Clone , PartialEq , Debug ) ]
155
+ #[ derive( Clone , PartialEq , Eq , Debug ) ]
156
156
#[ stable( feature = "cstr_from_bytes" , since = "1.10.0" ) ]
157
157
pub struct FromBytesWithNulError { _a : ( ) }
158
158
159
159
/// An error returned from `CString::into_string` to indicate that a UTF-8 error
160
160
/// was encountered during the conversion.
161
- #[ derive( Clone , PartialEq , Debug ) ]
161
+ #[ derive( Clone , PartialEq , Eq , Debug ) ]
162
162
#[ stable( feature = "cstring_into" , since = "1.7.0" ) ]
163
163
pub struct IntoStringError {
164
164
inner : CString ,
0 commit comments