@@ -15,7 +15,7 @@ use sentry_log::SentryLogger;
15
15
use structopt:: StructOpt ;
16
16
use strum:: VariantNames ;
17
17
18
- pub fn main ( ) {
18
+ fn main ( ) {
19
19
let _ = dotenv:: dotenv ( ) ;
20
20
21
21
let _sentry_guard = if let Ok ( sentry_dsn) = env:: var ( "SENTRY_DSN" ) {
@@ -124,7 +124,7 @@ enum CommandLine {
124
124
}
125
125
126
126
impl CommandLine {
127
- pub fn handle_args ( self ) -> Result < ( ) > {
127
+ fn handle_args ( self ) -> Result < ( ) > {
128
128
let ctx = BinContext :: new ( ) ;
129
129
130
130
match self {
@@ -175,7 +175,7 @@ enum QueueSubcommand {
175
175
}
176
176
177
177
impl QueueSubcommand {
178
- pub fn handle_args ( self , ctx : BinContext ) -> Result < ( ) > {
178
+ fn handle_args ( self , ctx : BinContext ) -> Result < ( ) > {
179
179
match self {
180
180
Self :: Add {
181
181
crate_name,
@@ -214,7 +214,7 @@ enum PrioritySubcommand {
214
214
}
215
215
216
216
impl PrioritySubcommand {
217
- pub fn handle_args ( self , ctx : BinContext ) -> Result < ( ) > {
217
+ fn handle_args ( self , ctx : BinContext ) -> Result < ( ) > {
218
218
match self {
219
219
Self :: Set { pattern, priority } => {
220
220
set_crate_priority ( & mut * ctx. conn ( ) ?, & pattern, priority)
@@ -248,7 +248,7 @@ struct Build {
248
248
}
249
249
250
250
impl Build {
251
- pub fn handle_args ( self , ctx : BinContext ) -> Result < ( ) > {
251
+ fn handle_args ( self , ctx : BinContext ) -> Result < ( ) > {
252
252
self . subcommand . handle_args ( ctx, self . skip_if_exists )
253
253
}
254
254
}
@@ -295,7 +295,7 @@ enum BuildSubcommand {
295
295
}
296
296
297
297
impl BuildSubcommand {
298
- pub fn handle_args ( self , ctx : BinContext , skip_if_exists : bool ) -> Result < ( ) > {
298
+ fn handle_args ( self , ctx : BinContext , skip_if_exists : bool ) -> Result < ( ) > {
299
299
let build_queue = ctx. build_queue ( ) ?;
300
300
301
301
let rustwide_builder = || -> Result < RustwideBuilder > {
@@ -422,7 +422,7 @@ enum DatabaseSubcommand {
422
422
}
423
423
424
424
impl DatabaseSubcommand {
425
- pub fn handle_args ( self , ctx : BinContext ) -> Result < ( ) > {
425
+ fn handle_args ( self , ctx : BinContext ) -> Result < ( ) > {
426
426
match self {
427
427
Self :: Migrate { version } => {
428
428
db:: migrate ( version, & mut * ctx. conn ( ) ?)
0 commit comments