Fix clippy warning

This commit is contained in:
gwenn 2018-06-20 19:12:02 +02:00
parent b135c6d871
commit 2a684384fd

View File

@ -83,12 +83,9 @@ impl VTab for ArrayTab {
if constraint.operator() != vtab::IndexConstraintOp::SQLITE_INDEX_CONSTRAINT_EQ { if constraint.operator() != vtab::IndexConstraintOp::SQLITE_INDEX_CONSTRAINT_EQ {
continue; continue;
} }
match constraint.column() { if let CARRAY_COLUMN_POINTER = constraint.column() {
CARRAY_COLUMN_POINTER => {
ptr_idx = Some(i); ptr_idx = Some(i);
} }
_ => {}
}
} }
if let Some(ptr_idx) = ptr_idx { if let Some(ptr_idx) = ptr_idx {
{ {