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