Add more explicit types in unit tests.

This commit is contained in:
John Gallagher
2017-02-05 17:30:53 -05:00
parent 186da8d9ad
commit 60e1f3c02f
5 changed files with 19 additions and 13 deletions

View File

@@ -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#"