Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8a1dae

Browse files
committed
Update example
1 parentdd6fd32 commitc8a1dae

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)

[8]ページ先頭

©2009-2025 Movatter.jp