File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " r2d2_postgres"
3- version = " 0.1.1 "
3+ version = " 0.2.0 "
44authors = [
" Steven Fackler <[email protected] >" ]
55license = " MIT"
66description = " Postgres support for the r2d2 connection pool"
@@ -18,5 +18,5 @@ name = "test"
1818path = " tests/test.rs"
1919
2020[dependencies ]
21- r2d2 = " 0.1 "
21+ r2d2 = " 0.2 "
2222postgres = " 0.2"
Original file line number Diff line number Diff 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/// });
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments