File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -235,8 +235,7 @@ pub struct RawBrandedStructSchema {
235
235
236
236
impl core:: cmp:: PartialEq for RawBrandedStructSchema {
237
237
fn eq ( & self , other : & Self ) -> bool {
238
- self . generic as * const _ == other. generic as * const _
239
- && self . field_types == other. field_types
238
+ core:: ptr:: eq ( self . generic , other. generic ) && self . field_types == other. field_types
240
239
// don't need to compare annotation_types.
241
240
// that field is equal iff field_types is.
242
241
}
@@ -270,7 +269,7 @@ pub struct RawEnumSchema {
270
269
271
270
impl core:: cmp:: PartialEq for RawEnumSchema {
272
271
fn eq ( & self , other : & Self ) -> bool {
273
- self . encoded_node as * const _ == other. encoded_node as * const _
272
+ :: core :: ptr :: eq ( self . encoded_node , other. encoded_node )
274
273
}
275
274
}
276
275
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ impl AnnotationList {
394
394
}
395
395
396
396
pub fn get ( self , index : u32 ) -> Annotation {
397
- let proto = self . annotations . get ( index as u32 ) ;
397
+ let proto = self . annotations . get ( index) ;
398
398
let ty = ( self . get_annotation_type ) ( self . child_index , index) ;
399
399
Annotation { proto, ty }
400
400
}
You can’t perform that action at this time.
0 commit comments