File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -502,19 +502,19 @@ enum BlacklistSubcommand {
502
502
503
503
impl BlacklistSubcommand {
504
504
fn handle_args ( self , ctx : BinContext ) -> Result < ( ) > {
505
- let mut conn = & mut * ctx. conn ( ) ?;
505
+ let conn = & mut * ctx. conn ( ) ?;
506
506
match self {
507
507
Self :: List => {
508
- let crates = db:: blacklist:: list_crates ( & mut conn)
508
+ let crates = db:: blacklist:: list_crates ( conn)
509
509
. context ( "failed to list crates on blacklist" ) ?;
510
510
511
511
println ! ( "{}" , crates. join( "\n " ) ) ;
512
512
}
513
513
514
- Self :: Add { crate_name } => db:: blacklist:: add_crate ( & mut conn, & crate_name)
514
+ Self :: Add { crate_name } => db:: blacklist:: add_crate ( conn, & crate_name)
515
515
. context ( "failed to add crate to blacklist" ) ?,
516
516
517
- Self :: Remove { crate_name } => db:: blacklist:: remove_crate ( & mut conn, & crate_name)
517
+ Self :: Remove { crate_name } => db:: blacklist:: remove_crate ( conn, & crate_name)
518
518
. context ( "failed to remove crate from blacklist" ) ?,
519
519
}
520
520
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments