Skip to content

Commit c8a1dae

Browse files
committed
Update example
1 parent dd6fd32 commit c8a1dae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ impl error::Error for Error {
5050
/// extern crate r2d2_postgres;
5151
/// extern crate postgres;
5252
///
53-
/// use std::sync::Arc;
54-
/// use std::default::Default;
5553
/// use std::thread;
5654
/// use postgres::SslMode;
5755
/// use r2d2_postgres::PostgresConnectionManager;
@@ -60,7 +58,7 @@ impl error::Error for Error {
6058
/// let config = r2d2::Config::default();
6159
/// let manager = PostgresConnectionManager::new("postgres://postgres@localhost",
6260
/// SslMode::None).unwrap();
63-
/// let pool = Arc::new(r2d2::Pool::new(config, manager).unwrap());
61+
/// let pool = r2d2::Pool::new(config, manager).unwrap();
6462
///
6563
/// for i in 0..10i32 {
6664
/// let pool = pool.clone();

0 commit comments

Comments
 (0)