@@ -9,6 +9,7 @@ use ruff_python_trivia::{Cursor, is_python_whitespace};
99use ruff_text_size:: { Ranged , TextLen , TextRange , TextSize , TextSlice } ;
1010use smallvec:: { SmallVec , smallvec} ;
1111
12+ #[ allow( unused) ]
1213#[ derive( Clone , Debug , Eq , PartialEq ) ]
1314enum SuppressionAction {
1415 Disable ,
@@ -30,6 +31,7 @@ pub(crate) struct SuppressionComment {
3031 reason : TextRange ,
3132}
3233
34+ #[ allow( unused) ]
3335impl SuppressionComment {
3436 /// Return the suppressed codes as strings
3537 fn codes_as_str < ' src > ( & self , source : & ' src str ) -> impl Iterator < Item = & ' src str > {
@@ -46,6 +48,7 @@ pub(crate) struct PendingSuppressionComment<'a> {
4648 comment : SuppressionComment ,
4749}
4850
51+ #[ allow( unused) ]
4952impl PendingSuppressionComment < ' _ > {
5053 /// Whether the comment "matches" another comment, based on indentation and suppressed codes
5154 fn matches ( & self , other : & PendingSuppressionComment , source : & str ) -> bool {
@@ -74,6 +77,7 @@ pub(crate) struct Suppression {
7477 comments : SmallVec < [ SuppressionComment ; 2 ] > ,
7578}
7679
80+ #[ allow( unused) ]
7781#[ derive( Copy , Clone , Debug ) ]
7882pub ( crate ) enum InvalidSuppressionKind {
7983 /// Trailing suppression not supported
@@ -106,6 +110,7 @@ pub(crate) struct Suppressions {
106110 errors : Vec < ParseError > ,
107111}
108112
113+ #[ allow( unused) ]
109114impl Suppressions {
110115 pub ( crate ) fn from_tokens ( source : & str , tokens : & Tokens ) -> Suppressions {
111116 let builder = SuppressionsBuilder :: new ( source) ;
0 commit comments