File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -616,13 +616,12 @@ impl Statement {
616
616
& self . columns
617
617
}
618
618
619
- pub fn execute ( self ,
619
+ pub fn execute ( & self ,
620
620
params : & [ & ToSql ] ,
621
621
conn : Connection )
622
- -> BoxFuture < ( u64 , Statement , Connection ) , Error > {
622
+ -> BoxFuture < ( u64 , Connection ) , Error > {
623
623
conn. raw_execute ( & self . name , "" , & self . params , params)
624
624
. and_then ( |conn| conn. finish_execute ( ) )
625
- . map ( |( n, conn) | ( n, self , conn) )
626
625
. boxed ( )
627
626
}
628
627
}
Original file line number Diff line number Diff line change @@ -113,11 +113,11 @@ fn prepare_execute() {
113
113
c. unwrap ( ) . prepare ( "CREATE TEMPORARY TABLE foo (id SERIAL PRIMARY KEY, name VARCHAR)" )
114
114
} )
115
115
. and_then ( |( s, c) | s. execute ( & [ ] , c) )
116
- . and_then ( |( n, _ , c) | {
116
+ . and_then ( |( n, c) | {
117
117
assert_eq ! ( 0 , n) ;
118
118
c. prepare ( "INSERT INTO foo (name) VALUES ($1), ($2)" )
119
119
} )
120
120
. and_then ( |( s, c) | s. execute ( & [ & "steven" , & "bob" ] , c) )
121
- . map ( |( n, _, _ ) | assert_eq ! ( n, 2 ) ) ;
121
+ . map ( |( n, _) | assert_eq ! ( n, 2 ) ) ;
122
122
l. run ( done) . unwrap ( ) ;
123
123
}
You can’t perform that action at this time.
0 commit comments