File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ pub(crate) struct PendingSuppressionComment<'a> {
5151#[ allow( unused) ]
5252impl PendingSuppressionComment < ' _ > {
5353 /// Whether the comment "matches" another comment, based on indentation and suppressed codes
54+ /// Expects a "forward search" for matches, ie, will only match if the current comment is a
55+ /// "disable" comment and other is the matching "enable" comment.
5456 fn matches ( & self , other : & PendingSuppressionComment , source : & str ) -> bool {
55- ( ( self . comment . action == SuppressionAction :: Enable
56- && other. comment . action == SuppressionAction :: Disable )
57- || ( self . comment . action == SuppressionAction :: Disable
58- && other. comment . action == SuppressionAction :: Enable ) )
57+ self . comment . action == SuppressionAction :: Disable
58+ && other. comment . action == SuppressionAction :: Enable
5959 && self . indent == other. indent
6060 && self
6161 . comment
You can’t perform that action at this time.
0 commit comments