We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 082728b commit 2bb74ceCopy full SHA for 2bb74ce
1 file changed
tests/async.rs
@@ -67,7 +67,7 @@ where
67
mut params,
68
results,
69
} => {
70
- let ps = Vec::new();
+ let mut ps = Vec::new();
71
while let Some(p) = params.next() {
72
ps.push(p);
73
}
@@ -392,13 +392,11 @@ fn it_queries() {
392
coltype: myc::constants::ColumnType::MYSQL_TYPE_SHORT,
393
colflags: myc::constants::ColumnFlags::empty(),
394
}];
395
- w.start(cols)
396
- .and_then(|w| {
397
- w.write_col(1024i16)?;
398
- Ok(w)
399
- })
400
- .into_future()
401
- .and_then(|w| w.finish())
+
+ do_and_finish!(w.start(cols) => |w| {
+ w.write_col(1024i16)?;
+ w
+ })
402
},
403
|_| unreachable!(),
404
|_, _, _| {
0 commit comments