Merge pull request #497 from gwenn/clippy

Rustfmt + clippy
This commit is contained in:
gwenn 2019-03-22 19:30:42 +01:00 committed by GitHub
commit 3d088ac348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
assert_eq!(
&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
F: FnMut(&Row<'_>) -> Result<B>,
{
Map { rows: self, f: f }
Map { rows: self, f }
}
}

View File

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