Fix stream use

This commit is contained in:
Steven Fackler 2013-12-17 23:54:59 -08:00
parent f4bc1ffeda
commit 4b6838d15b

View File

@ -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 {