File tree 5 files changed +5
-2
lines changed
5 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ use std::io::prelude::*;
18
18
19
19
use cargo_registry:: Crate ;
20
20
21
+ #[ allow( dead_code) ]
21
22
fn main ( ) {
22
23
let conn = postgres:: Connection :: connect ( & env ( "DATABASE_URL" ) [ ..] ,
23
24
& postgres:: SslMode :: None ) . unwrap ( ) ;
@@ -97,4 +98,3 @@ fn delete(tx: &postgres::Transaction) {
97
98
io:: stdin ( ) . read_line ( & mut line) . unwrap ( ) ;
98
99
if !line. starts_with ( "y" ) { panic ! ( "aborting transaction" ) ; }
99
100
}
100
-
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ use std::io::prelude::*;
18
18
19
19
use cargo_registry:: { Crate , Version } ;
20
20
21
+ #[ allow( dead_code) ]
21
22
fn main ( ) {
22
23
let conn = postgres:: Connection :: connect ( & env ( "DATABASE_URL" ) [ ..] ,
23
24
& postgres:: SslMode :: None ) . unwrap ( ) ;
@@ -75,4 +76,3 @@ fn delete(tx: &postgres::Transaction) {
75
76
io:: stdin ( ) . read_line ( & mut line) . unwrap ( ) ;
76
77
if !line. starts_with ( "y" ) { panic ! ( "aborting transaction" ) ; }
77
78
}
78
-
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ use migrate::Migration;
12
12
use cargo_registry:: krate:: Crate ;
13
13
use cargo_registry:: model:: Model ;
14
14
15
+ #[ allow( dead_code) ]
15
16
fn main ( ) {
16
17
let conn = postgres:: Connection :: connect ( & env ( "DATABASE_URL" ) [ ..] ,
17
18
& postgres:: SslMode :: None ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use std::env;
15
15
use time:: Duration ;
16
16
use rand:: { StdRng , Rng } ;
17
17
18
+ #[ allow( dead_code) ]
18
19
fn main ( ) {
19
20
let conn = postgres:: Connection :: connect ( & env ( "DATABASE_URL" ) [ ..] ,
20
21
& postgres:: SslMode :: None ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use std::path::PathBuf;
13
13
use std:: sync:: Arc ;
14
14
use std:: sync:: mpsc:: channel;
15
15
16
+ #[ allow( dead_code) ]
16
17
fn main ( ) {
17
18
env_logger:: init ( ) . unwrap ( ) ;
18
19
let url = env ( "GIT_REPO_URL" ) ;
You can’t perform that action at this time.
0 commit comments