File tree 2 files changed +2
-7
lines changed
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -542,18 +542,13 @@ declare_lint! {
542
542
"detects missing implementations of fmt::Debug"
543
543
}
544
544
545
+ #[ derive( Default ) ]
545
546
pub struct MissingDebugImplementations {
546
547
impling_types : Option < HirIdSet > ,
547
548
}
548
549
549
550
impl_lint_pass ! ( MissingDebugImplementations => [ MISSING_DEBUG_IMPLEMENTATIONS ] ) ;
550
551
551
- impl MissingDebugImplementations {
552
- pub fn new ( ) -> MissingDebugImplementations {
553
- MissingDebugImplementations { impling_types : None }
554
- }
555
- }
556
-
557
552
impl < ' a , ' tcx > LateLintPass < ' a , ' tcx > for MissingDebugImplementations {
558
553
fn check_item ( & mut self , cx : & LateContext < ' _ , ' _ > , item : & hir:: Item ) {
559
554
if !cx. access_levels . is_reachable ( item. hir_id ) {
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ macro_rules! late_lint_passes {
132
132
// Depends on access levels
133
133
// FIXME: Turn the computation of types which implement Debug into a query
134
134
// and change this to a module lint pass
135
- MissingDebugImplementations : MissingDebugImplementations :: new ( ) ,
135
+ MissingDebugImplementations : MissingDebugImplementations :: default ( ) ,
136
136
] ) ;
137
137
)
138
138
}
You can’t perform that action at this time.
0 commit comments