Skip to content

Commit f37823b

Browse files
committed
Fix warnings
1 parent 049576f commit f37823b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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)]
54
extern crate r2d2;
65
extern 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
/// });

0 commit comments

Comments
 (0)