Rustfmt + clippy

This commit is contained in:
gwenn 2019-03-21 19:13:55 +01:00
parent 4ef5bcaf55
commit 80205da623
3 changed files with 3 additions and 7 deletions

View File

@ -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"),
]
); );
} }
} }

View File

@ -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 }
} }
} }

View File

@ -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 {