Fix clippy warnings

This commit is contained in:
gwenn
2019-11-03 11:19:07 +01:00
parent 9484f5c15e
commit 8302a50fb8
9 changed files with 43 additions and 26 deletions

View File

@@ -36,7 +36,7 @@ impl PartialEq for FromSqlError {
(FromSqlError::InvalidI128Size(s1), FromSqlError::InvalidI128Size(s2)) => s1 == s2,
#[cfg(feature = "uuid")]
(FromSqlError::InvalidUuidSize(s1), FromSqlError::InvalidUuidSize(s2)) => s1 == s2,
(_, _) => false,
(..) => false,
}
}
}

View File

@@ -225,7 +225,7 @@ mod test {
fn test_mismatched_types() {
fn is_invalid_column_type(err: Error) -> bool {
match err {
Error::InvalidColumnType(_, _, _) => true,
Error::InvalidColumnType(..) => true,
_ => false,
}
}