mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:29:20 +08:00
commit
3d088ac348
@ -122,11 +122,7 @@ mod test {
|
||||
let column_types: Vec<Option<&str>> = columns.iter().map(Column::decl_type).collect();
|
||||
assert_eq!(
|
||||
&column_types[..3],
|
||||
&[
|
||||
Some("text"),
|
||||
Some("text"),
|
||||
Some("text"),
|
||||
]
|
||||
&[Some("text"), Some("text"), Some("text"),]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ impl<'stmt> Rows<'stmt> {
|
||||
where
|
||||
F: FnMut(&Row<'_>) -> Result<B>,
|
||||
{
|
||||
Map { rows: self, f: f }
|
||||
Map { rows: self, f }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -225,7 +225,7 @@ mod test {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::cyclomatic_complexity)]
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
fn test_mismatched_types() {
|
||||
fn is_invalid_column_type(err: Error) -> bool {
|
||||
match err {
|
||||
|
Loading…
Reference in New Issue
Block a user