@@ -479,18 +479,19 @@ s_no_extra_traits! {
479
479
__sigev_pad2: :: c_int,
480
480
}
481
481
482
+ #[ cfg_attr( feature = "extra_traits" , allow( missing_debug_implementations) ) ]
482
483
pub union door_desc_t__d_data {
483
484
pub d_desc: door_desc_t__d_data__d_desc,
484
485
d_resv: [ :: c_int; 5 ] , /* Check out /usr/include/sys/door.h */
485
486
}
486
487
487
- #[ derive ( Debug ) ]
488
+ #[ cfg_attr ( feature = "extra_traits" , allow ( missing_debug_implementations ) ) ]
488
489
pub struct door_desc_t {
489
490
pub d_attributes: door_attr_t,
490
491
pub d_data: door_desc_t__d_data,
491
492
}
492
493
493
- #[ derive ( Debug ) ]
494
+ #[ cfg_attr ( feature = "extra_traits" , allow ( missing_debug_implementations ) ) ]
494
495
pub struct door_arg_t {
495
496
pub data_ptr: * const :: c_char,
496
497
pub data_size: :: size_t,
@@ -559,21 +560,6 @@ cfg_if! {
559
560
}
560
561
}
561
562
562
- impl :: fmt:: Debug for door_desc_t__d_data {
563
- fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
564
- unsafe {
565
- match self {
566
- Self { d_desc } => f. debug_struct( "door_desc_t__d_data" )
567
- . field( "d_desc" , & self . d_desc)
568
- . finish( ) ,
569
- Self { d_resv } => f. debug_struct( "door_desc_t__d_data" )
570
- . field( "d_resv" , & self . d_resv)
571
- . finish( ) ,
572
- }
573
- }
574
- }
575
- }
576
-
577
563
impl PartialEq for epoll_event {
578
564
fn eq( & self , other: & epoll_event) -> bool {
579
565
self . events == other. events
0 commit comments