Skip to content

Commit 08678bd

Browse files
committed
Update for opt in Copy changes
1 parent 6128425 commit 08678bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use postgres::{IntoConnectParams, SslMode};
1515
use postgres::types::ToSql;
1616

1717
/// A unified enum of errors returned by postgres::Connection
18+
#[deriving(Clone)]
1819
pub enum Error {
1920
/// A postgres::ConnectError
2021
Connect(postgres::ConnectError),
@@ -115,6 +116,7 @@ impl r2d2::PoolManager<postgres::Connection, Error> for PostgresPoolManager {
115116
}
116117

117118
/// Configuration options for the `CachingStatementManager`.
119+
#[deriving(Copy, Clone)]
118120
pub struct Config {
119121
/// The number of `postgres::Statement`s that will be internally cached.
120122
///

0 commit comments

Comments
 (0)