Implement AsRef<Statement> for Row(s) (#887)

This commit is contained in:
gwenn
2021-05-26 14:51:28 +02:00
committed by GitHub
parent 48e7561af9
commit df02910660
3 changed files with 13 additions and 68 deletions

View File

@@ -1861,7 +1861,7 @@ mod test {
db.execute_batch(sql)?;
db.query_row("SELECT * FROM foo", [], |r| {
assert_eq!(2, r.column_count());
assert_eq!(2, r.as_ref().column_count());
Ok(())
})
}