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