Fix stream use
This commit is contained in:
parent
f4bc1ffeda
commit
4b6838d15b
2
test.rs
2
test.rs
@ -45,7 +45,7 @@ fn test_pool() {
|
||||
let pool = PostgresConnectionPool::new("postgres://postgres@localhost",
|
||||
NoSsl, 2);
|
||||
|
||||
let (stream1, stream2) = DuplexStream::<(), ()>();
|
||||
let (stream1, stream2) = DuplexStream::<(), ()>::new();
|
||||
|
||||
let pool1 = pool.clone();
|
||||
let mut fut1 = do Future::spawn {
|
||||
|
Loading…
Reference in New Issue
Block a user