File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ impl TraitHandler for OrdEnumHandler {
210210 } else {
211211 let discriminant_cmp = quote ! {
212212 unsafe {
213- :: core:: cmp:: Ord :: cmp( & * <* const _ >:: from( self ) . cast:: <#discriminant_type>( ) , & * <* const _ >:: from( other) . cast:: <#discriminant_type>( ) )
213+ :: core:: cmp:: Ord :: cmp( & * <* const Self >:: from( self ) . cast:: <#discriminant_type>( ) , & * <* const Self >:: from( other) . cast:: <#discriminant_type>( ) )
214214 }
215215 } ;
216216
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ impl TraitHandler for PartialOrdEnumHandler {
215215 } else {
216216 let discriminant_cmp = quote ! {
217217 unsafe {
218- :: core:: cmp:: Ord :: cmp( & * <* const _ >:: from( self ) . cast:: <#discriminant_type>( ) , & * <* const _ >:: from( other) . cast:: <#discriminant_type>( ) )
218+ :: core:: cmp:: Ord :: cmp( & * <* const Self >:: from( self ) . cast:: <#discriminant_type>( ) , & * <* const Self >:: from( other) . cast:: <#discriminant_type>( ) )
219219 }
220220 } ;
221221
You can’t perform that action at this time.
0 commit comments