Skip to content

Commit 099bb18

Browse files
committed
Update for proc removal
1 parent 9a1a6e9 commit 099bb18

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "r2d2_postgres"
3-
version = "0.1.1"
3+
version = "0.2.0"
44
authors = ["Steven Fackler <[email protected]>"]
55
license = "MIT"
66
description = "Postgres support for the r2d2 connection pool"
@@ -18,5 +18,5 @@ name = "test"
1818
path = "tests/test.rs"
1919

2020
[dependencies]
21-
r2d2 = "0.1"
21+
r2d2 = "0.2"
2222
postgres = "0.2"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl error::Error for Error {
7171
///
7272
/// for i in range(0, 10i32) {
7373
/// let pool = pool.clone();
74-
/// spawn(proc() {
74+
/// spawn(move || {
7575
/// let conn = pool.get().unwrap();
7676
/// conn.execute("INSERT INTO foo (bar) VALUES ($1)", &[&i]).unwrap();
7777
/// });

tests/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ fn test_basic() {
2424
let (s2, r2) = comm::channel();
2525

2626
let pool1 = pool.clone();
27-
let mut fut1 = Future::spawn(proc() {
27+
let mut fut1 = Future::spawn(move || {
2828
let conn = pool1.get().unwrap();
2929
s1.send(());
3030
r2.recv();
3131
drop(conn);
3232
});
3333

3434
let pool2 = pool.clone();
35-
let mut fut2 = Future::spawn(proc() {
35+
let mut fut2 = Future::spawn(move || {
3636
let conn = pool2.get().unwrap();
3737
s2.send(());
3838
r1.recv();

0 commit comments

Comments
 (0)