Skip to content

Commit 41c386c

Browse files
committed
Take mutable references
1 parent 5155f61 commit 41c386c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ impl r2d2::PoolManager<PostgresConnection, PostgresConnectError> for PostgresPoo
2626
}
2727
}
2828

29-
fn is_valid(&self, conn: &PostgresConnection) -> bool {
29+
fn is_valid(&self, conn: &mut PostgresConnection) -> bool {
3030
conn.batch_execute("SELECT 1").is_ok()
3131
}
3232

33-
fn has_broken(&self, conn: &PostgresConnection) -> bool {
33+
fn has_broken(&self, conn: &mut PostgresConnection) -> bool {
3434
conn.is_desynchronized()
3535
}
3636
}

0 commit comments

Comments
 (0)