Skip to content

Commit c4e2e52

Browse files
committed
Update to rust master
1 parent 511de76 commit c4e2e52

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ git = "https://github.com/sfackler/rust-phf"
2020

2121
[dependencies.phf_mac]
2222
git = "https://github.com/sfackler/rust-phf"
23+
24+
[dev-dependencies.url]
25+
git = "https://github.com/rust-lang/url"

src/pool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ pub struct PooledPostgresConnection {
100100
impl Drop for PooledPostgresConnection {
101101
fn drop(&mut self) {
102102
let mut pool = self.pool.pool.lock();
103-
pool.pool.push(self.conn.take_unwrap());
103+
pool.pool.push(self.conn.take().unwrap());
104104
pool.cond.signal();
105105
}
106106
}
107107

108108
impl Deref<PostgresConnection> for PooledPostgresConnection {
109109
fn deref<'a>(&'a self) -> &'a PostgresConnection {
110-
self.conn.get_ref()
110+
self.conn.as_ref().unwrap()
111111
}
112112
}

0 commit comments

Comments
 (0)