Skip to content

Commit 6f2d883

Browse files
committed
Update for API change
1 parent e4c2e20 commit 6f2d883

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ impl PostgresConnection {
613613
/// username if not specified.
614614
pub fn try_connect(url: &str) -> Result<PostgresConnection,
615615
PostgresConnectError> {
616-
do InnerPostgresConnection::try_connect(url).map_move |conn| {
616+
do InnerPostgresConnection::try_connect(url).map |conn| {
617617
PostgresConnection {
618618
conn: Cell::new(conn)
619619
}
@@ -797,7 +797,7 @@ impl<'self> PostgresTransaction<'self> {
797797
/// Like `PostgresConnection::try_prepare`.
798798
pub fn try_prepare<'a>(&'a self, query: &str)
799799
-> Result<TransactionalPostgresStatement<'a>, PostgresDbError> {
800-
do self.conn.try_prepare(query).map_move |stmt| {
800+
do self.conn.try_prepare(query).map |stmt| {
801801
TransactionalPostgresStatement {
802802
stmt: stmt
803803
}

0 commit comments

Comments
 (0)