File tree Expand file tree Collapse file tree 3 files changed +17
-15
lines changed Expand file tree Collapse file tree 3 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ slug = "=0.1.1"
21
21
env_logger = " 0.4"
22
22
magic = " 0.12"
23
23
r2d2 = " 0.7"
24
- r2d2_postgres = " 0.12 "
24
+ r2d2_postgres = " 0.13 "
25
25
url = " 1.4"
26
26
libc = " 0.2"
27
27
badge = { version = " 0" , path = " src/web/badge" }
@@ -39,7 +39,7 @@ params = "0.6"
39
39
staticfile = { version = " 0.4" , features = [ " cache" ] }
40
40
41
41
[dependencies .postgres ]
42
- version = " 0.14 "
42
+ version = " 0.15 "
43
43
features = [ " with-time" , " with-rustc-serialize" ]
44
44
45
45
[dev-dependencies ]
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ pub use self::add_package::add_build_into_database;
5
5
pub use self :: file:: add_path_into_database;
6
6
7
7
use postgres:: { Connection , TlsMode } ;
8
- use postgres:: error:: { Error , ConnectError } ;
8
+ use postgres:: error:: Error ;
9
9
use std:: env;
10
10
use r2d2;
11
11
use r2d2_postgres;
@@ -15,7 +15,7 @@ mod file;
15
15
16
16
17
17
/// Connects to database
18
- pub fn connect_db ( ) -> Result < Connection , ConnectError > {
18
+ pub fn connect_db ( ) -> Result < Connection , Error > {
19
19
// FIXME: unwrap might not be the best here
20
20
let db_url = env:: var ( "CRATESFYI_DATABASE_URL" )
21
21
. expect ( "CRATESFYI_DATABASE_URL environment variable is not exists" ) ;
You can’t perform that action at this time.
0 commit comments