We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent049576f commitf37823bCopy full SHA for f37823b
src/lib.rs
@@ -1,6 +1,5 @@
1
//! Postgres support for the `r2d2` connection pool.
2
#![doc(html_root_url="https://sfackler.github.io/r2d2-postgres/doc")]
3
-#![feature(core)]
4
#![warn(missing_docs)]
5
externcrate r2d2;
6
externcrate postgres;
@@ -53,7 +52,7 @@ impl error::Error for Error {
53
52
///
54
/// use std::sync::Arc;
55
/// use std::default::Default;
56
-/// use std::thread::Thread;
+/// use std::thread;
57
/// use postgres::SslMode;
58
/// use r2d2_postgres::PostgresConnectionManager;
59
@@ -66,7 +65,7 @@ impl error::Error for Error {
66
65
67
/// for i in 0..10i32 {
68
/// let pool = pool.clone();
69
-///Thread::spawn(move || {
+///thread::spawn(move || {
70
/// let conn = pool.get().unwrap();
71
/// conn.execute("INSERT INTO foo (bar) VALUES ($1)", &[&i]).unwrap();
72
/// });