Skip to content

Commit 05c6ff2

Browse files
committed
Use postgres 0.15
1 parent 5e8dc48 commit 05c6ff2

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

Cargo.lock

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ slug = "=0.1.1"
2121
env_logger = "0.4"
2222
magic = "0.12"
2323
r2d2 = "0.7"
24-
r2d2_postgres = "0.12"
24+
r2d2_postgres = "0.13"
2525
url = "1.4"
2626
libc = "0.2"
2727
badge = { version = "0", path = "src/web/badge" }
@@ -39,7 +39,7 @@ params = "0.6"
3939
staticfile = { version = "0.4", features = [ "cache" ] }
4040

4141
[dependencies.postgres]
42-
version = "0.14"
42+
version = "0.15"
4343
features = [ "with-time", "with-rustc-serialize" ]
4444

4545
[dev-dependencies]

src/db/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub use self::add_package::add_build_into_database;
55
pub use self::file::add_path_into_database;
66

77
use postgres::{Connection, TlsMode};
8-
use postgres::error::{Error, ConnectError};
8+
use postgres::error::Error;
99
use std::env;
1010
use r2d2;
1111
use r2d2_postgres;
@@ -15,7 +15,7 @@ mod file;
1515

1616

1717
/// Connects to database
18-
pub fn connect_db() -> Result<Connection, ConnectError> {
18+
pub fn connect_db() -> Result<Connection, Error> {
1919
// FIXME: unwrap might not be the best here
2020
let db_url = env::var("CRATESFYI_DATABASE_URL")
2121
.expect("CRATESFYI_DATABASE_URL environment variable is not exists");

0 commit comments

Comments
 (0)