Skip to content

Commit 1bdde39

Browse files
committed
Merge pull request #1 from alexcrichton/remove-locks
Remove locked revisions from the manifest
2 parents 37cfc47 + 15ed280 commit 1bdde39

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ git = "https://github.com/sfackler/rust-postgres"
1717

1818
[dependencies.r2d2]
1919
git = "https://github.com/sfackler/r2d2"
20-
rev = "28c28642e643bbf8275ee4ef641eef2b8f53a88f"

tests/test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ fn test_basic() {
5252
let conn = pool1.get().unwrap();
5353
s1.send(());
5454
r2.recv();
55-
conn.replace();
55+
drop(conn);
5656
});
5757

5858
let pool2 = pool.clone();
5959
let mut fut2 = Future::spawn(proc() {
6060
let conn = pool2.get().unwrap();
6161
s2.send(());
6262
r1.recv();
63-
conn.replace();
63+
drop(conn);
6464
});
6565

6666
fut1.get();
6767
fut2.get();
6868

69-
pool.get().unwrap().replace();
69+
pool.get().unwrap();
7070
}

0 commit comments

Comments
 (0)