Fix clippy warning

This commit is contained in:
gwenn 2020-10-04 07:38:52 +02:00
parent 997e6d3cc3
commit d2dcc2d987

View File

@ -229,10 +229,7 @@ mod test {
#[allow(clippy::cognitive_complexity)]
fn test_mismatched_types() {
fn is_invalid_column_type(err: Error) -> bool {
match err {
Error::InvalidColumnType(..) => true,
_ => false,
}
matches!(err, Error::InvalidColumnType(..))
}
let db = checked_memory_handle();