File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,3 +20,6 @@ git = "https://github.com/sfackler/rust-phf"
2020
2121[dependencies .phf_mac ]
2222git = " https://github.com/sfackler/rust-phf"
23+
24+ [dev-dependencies .url ]
25+ git = " https://github.com/rust-lang/url"
Original file line number Diff line number Diff line change @@ -100,13 +100,13 @@ pub struct PooledPostgresConnection {
100100impl 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
108108impl 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}
You can’t perform that action at this time.
0 commit comments