44
55use clap:: { Args , Parser , Subcommand } ;
66use clippy_dev:: {
7- deprecate_lint, dogfood, fmt, lint, new_lint, release, rename_lint, serve, setup, sync, update_lints, utils,
7+ ClippyInfo , UpdateMode , deprecate_lint, dogfood, fmt, lint, new_lint, release, rename_lint, serve, setup, sync,
8+ update_lints,
89} ;
910use std:: convert:: Infallible ;
1011use std:: env;
1112
1213fn main ( ) {
1314 let dev = Dev :: parse ( ) ;
14- let clippy = utils :: ClippyInfo :: search_for_manifest ( ) ;
15+ let clippy = ClippyInfo :: search_for_manifest ( ) ;
1516 if let Err ( e) = env:: set_current_dir ( & clippy. path ) {
1617 panic ! ( "error setting current directory to `{}`: {e}" , clippy. path. display( ) ) ;
1718 }
@@ -26,16 +27,16 @@ fn main() {
2627 allow_staged,
2728 allow_no_vcs,
2829 } => dogfood:: dogfood ( fix, allow_dirty, allow_staged, allow_no_vcs) ,
29- DevCommand :: Fmt { check } => fmt:: run ( utils :: UpdateMode :: from_check ( check) ) ,
30- DevCommand :: UpdateLints { check } => update_lints:: update ( utils :: UpdateMode :: from_check ( check) ) ,
30+ DevCommand :: Fmt { check } => fmt:: run ( UpdateMode :: from_check ( check) ) ,
31+ DevCommand :: UpdateLints { check } => update_lints:: update ( UpdateMode :: from_check ( check) ) ,
3132 DevCommand :: NewLint {
3233 pass,
3334 name,
3435 category,
3536 r#type,
3637 msrv,
3738 } => match new_lint:: create ( clippy. version , pass, & name, & category, r#type. as_deref ( ) , msrv) {
38- Ok ( ( ) ) => update_lints:: update ( utils :: UpdateMode :: Change ) ,
39+ Ok ( ( ) ) => update_lints:: update ( UpdateMode :: Change ) ,
3940 Err ( e) => eprintln ! ( "Unable to create lint: {e}" ) ,
4041 } ,
4142 DevCommand :: Setup ( SetupCommand { subcommand } ) => match subcommand {
0 commit comments