@@ -94,7 +94,7 @@ pub trait Rule: RuleMeta + Sized {
94
94
}
95
95
96
96
/// Diagnostic object returned by a single analysis rule
97
- #[ derive( Debug , Diagnostic ) ]
97
+ #[ derive( Debug , Diagnostic , PartialEq ) ]
98
98
pub struct RuleDiagnostic {
99
99
#[ category]
100
100
pub ( crate ) category : & ' static Category ,
@@ -109,7 +109,7 @@ pub struct RuleDiagnostic {
109
109
pub ( crate ) rule_advice : RuleAdvice ,
110
110
}
111
111
112
- #[ derive( Debug , Default ) ]
112
+ #[ derive( Debug , Default , PartialEq ) ]
113
113
/// It contains possible advices to show when printing a diagnostic that belong to the rule
114
114
pub struct RuleAdvice {
115
115
pub ( crate ) details : Vec < Detail > ,
@@ -118,7 +118,7 @@ pub struct RuleAdvice {
118
118
pub ( crate ) code_suggestion_list : Vec < CodeSuggestionAdvice < MarkupBuf > > ,
119
119
}
120
120
121
- #[ derive( Debug , Default ) ]
121
+ #[ derive( Debug , Default , PartialEq ) ]
122
122
pub struct SuggestionList {
123
123
pub ( crate ) message : MarkupBuf ,
124
124
pub ( crate ) list : Vec < MarkupBuf > ,
@@ -160,7 +160,7 @@ impl Advices for RuleAdvice {
160
160
}
161
161
}
162
162
163
- #[ derive( Debug ) ]
163
+ #[ derive( Debug , PartialEq ) ]
164
164
pub struct Detail {
165
165
pub log_category : LogCategory ,
166
166
pub message : MarkupBuf ,
0 commit comments