Fix error: unknown lint: clippy::bool_to_int_with_if

This commit is contained in:
gwenn 2022-10-08 19:28:38 +02:00
parent ba73b81776
commit 456523f312

View File

@ -115,7 +115,7 @@ unsafe impl<'vtab> VTab<'vtab> for SeriesTab {
} }
if idx_num.contains(QueryPlanFlags::BOTH) { if idx_num.contains(QueryPlanFlags::BOTH) {
// Both start= and stop= boundaries are available. // Both start= and stop= boundaries are available.
#[allow(clippy::bool_to_int_with_if)] //#[allow(clippy::bool_to_int_with_if)]
info.set_estimated_cost(f64::from( info.set_estimated_cost(f64::from(
2 - if idx_num.contains(QueryPlanFlags::STEP) { 2 - if idx_num.contains(QueryPlanFlags::STEP) {
1 1