We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37cfc47 + 15ed280 commit 1bdde39Copy full SHA for 1bdde39
Cargo.toml
@@ -17,4 +17,3 @@ git = "https://github.com/sfackler/rust-postgres"
17
18
[dependencies.r2d2]
19
git = "https://github.com/sfackler/r2d2"
20
-rev = "28c28642e643bbf8275ee4ef641eef2b8f53a88f"
tests/test.rs
@@ -52,19 +52,19 @@ fn test_basic() {
52
let conn = pool1.get().unwrap();
53
s1.send(());
54
r2.recv();
55
- conn.replace();
+ drop(conn);
56
});
57
58
let pool2 = pool.clone();
59
let mut fut2 = Future::spawn(proc() {
60
let conn = pool2.get().unwrap();
61
s2.send(());
62
r1.recv();
63
64
65
66
fut1.get();
67
fut2.get();
68
69
- pool.get().unwrap().replace();
+ pool.get().unwrap();
70
}
0 commit comments