mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-13 08:19:19 +08:00
Add more explicit types in unit tests.
This commit is contained in:
@@ -258,7 +258,11 @@ mod test {
|
||||
{
|
||||
let mut stmt = db.prepare_cached(sql).unwrap();
|
||||
assert_eq!(1i32,
|
||||
stmt.query_map(&[], |r| r.get(0)).unwrap().next().unwrap().unwrap());
|
||||
stmt.query_map::<i32, _>(&[], |r| r.get(0))
|
||||
.unwrap()
|
||||
.next()
|
||||
.unwrap()
|
||||
.unwrap());
|
||||
}
|
||||
|
||||
db.execute_batch(r#"
|
||||
|
||||
Reference in New Issue
Block a user