File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 4343 steps :
4444 - uses : actions/checkout@v3
4545 - name : Run clippy
46- run : cargo clippy -- --no-deps # -D warnings
46+ run : cargo clippy -- --no-deps -D warnings -A clippy::new_without_default -A clippy::too_many_arguments
Original file line number Diff line number Diff line change 1+ # This file specifies the Rust version used to develop and test the shared
2+ # extractor. It is set to the lowest version of Rust we want to support.
3+
4+ [toolchain ]
5+ channel = " 1.68"
6+ profile = " minimal"
7+ components = [ " clippy" , " rustfmt" ]
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ impl Extractor {
6262 main_thread_logger. write (
6363 main_thread_logger
6464 . new_entry ( "configuration-error" , "Configuration error" )
65- . message ( "{}; using gzip." , & [ diagnostics:: MessageArg :: Code ( & e) ] )
65+ . message ( "{}; using gzip." , & [ diagnostics:: MessageArg :: Code ( e) ] )
6666 . severity ( diagnostics:: Severity :: Warning ) ,
6767 ) ;
6868 trap:: Compression :: Gzip
Original file line number Diff line number Diff line change @@ -83,10 +83,7 @@ pub enum Storage {
8383
8484impl Storage {
8585 pub fn is_column ( & self ) -> bool {
86- match self {
87- Storage :: Column { .. } => true ,
88- _ => false ,
89- }
86+ matches ! ( self , Storage :: Column { .. } )
9087 }
9188}
9289pub fn read_node_types ( prefix : & str , node_types_path : & Path ) -> std:: io:: Result < NodeTypeMap > {
You can’t perform that action at this time.
0 commit comments