File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11//! Postgres support for the `r2d2` connection pool.
22#![ doc( html_root_url="https://sfackler.github.io/r2d2-postgres/doc" ) ]
3- #![ feature( core) ]
43#![ warn( missing_docs) ]
54extern crate r2d2;
65extern crate postgres;
@@ -53,7 +52,7 @@ impl error::Error for Error {
5352///
5453/// use std::sync::Arc;
5554/// use std::default::Default;
56- /// use std::thread::Thread ;
55+ /// use std::thread;
5756/// use postgres::SslMode;
5857/// use r2d2_postgres::PostgresConnectionManager;
5958///
@@ -66,7 +65,7 @@ impl error::Error for Error {
6665///
6766/// for i in 0..10i32 {
6867/// let pool = pool.clone();
69- /// Thread ::spawn(move || {
68+ /// thread ::spawn(move || {
7069/// let conn = pool.get().unwrap();
7170/// conn.execute("INSERT INTO foo (bar) VALUES ($1)", &[&i]).unwrap();
7271/// });
You can’t perform that action at this time.
0 commit comments