Skip to content

Commit 2bb74ce

Browse files
committed
Fix some more errors
1 parent 082728b commit 2bb74ce

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

tests/async.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ where
6767
mut params,
6868
results,
6969
} => {
70-
let ps = Vec::new();
70+
let mut ps = Vec::new();
7171
while let Some(p) = params.next() {
7272
ps.push(p);
7373
}
@@ -392,13 +392,11 @@ fn it_queries() {
392392
coltype: myc::constants::ColumnType::MYSQL_TYPE_SHORT,
393393
colflags: myc::constants::ColumnFlags::empty(),
394394
}];
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())
395+
396+
do_and_finish!(w.start(cols) => |w| {
397+
w.write_col(1024i16)?;
398+
w
399+
})
402400
},
403401
|_| unreachable!(),
404402
|_, _, _| {

0 commit comments

Comments
 (0)