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 43
43
steps :
44
44
- uses : actions/checkout@v3
45
45
- 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 {
62
62
main_thread_logger. write (
63
63
main_thread_logger
64
64
. new_entry ( "configuration-error" , "Configuration error" )
65
- . message ( "{}; using gzip." , & [ diagnostics:: MessageArg :: Code ( & e) ] )
65
+ . message ( "{}; using gzip." , & [ diagnostics:: MessageArg :: Code ( e) ] )
66
66
. severity ( diagnostics:: Severity :: Warning ) ,
67
67
) ;
68
68
trap:: Compression :: Gzip
Original file line number Diff line number Diff line change @@ -83,10 +83,7 @@ pub enum Storage {
83
83
84
84
impl Storage {
85
85
pub fn is_column ( & self ) -> bool {
86
- match self {
87
- Storage :: Column { .. } => true ,
88
- _ => false ,
89
- }
86
+ matches ! ( self , Storage :: Column { .. } )
90
87
}
91
88
}
92
89
pub 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