From 80205da623c27ed33a56285d4c14e13b9a3a5732 Mon Sep 17 00:00:00 2001 From: gwenn Date: Thu, 21 Mar 2019 19:13:55 +0100 Subject: [PATCH] Rustfmt + clippy --- src/column.rs | 6 +----- src/row.rs | 2 +- src/types/mod.rs | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/column.rs b/src/column.rs index 2e08eb2..dcbccd7 100644 --- a/src/column.rs +++ b/src/column.rs @@ -122,11 +122,7 @@ mod test { let column_types: Vec> = columns.iter().map(Column::decl_type).collect(); assert_eq!( &column_types[..3], - &[ - Some("text"), - Some("text"), - Some("text"), - ] + &[Some("text"), Some("text"), Some("text"),] ); } } diff --git a/src/row.rs b/src/row.rs index ac6c33a..45d9739 100644 --- a/src/row.rs +++ b/src/row.rs @@ -39,7 +39,7 @@ impl<'stmt> Rows<'stmt> { where F: FnMut(&Row<'_>) -> Result, { - Map { rows: self, f: f } + Map { rows: self, f } } } diff --git a/src/types/mod.rs b/src/types/mod.rs index 34db37a..9506ed1 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -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 {