Skip to content

Commit

Permalink
fix: fmt & clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchi <[email protected]>
  • Loading branch information
zhongzc committed Dec 1, 2023
1 parent cfbdf6b commit 1cc4b2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/index/src/inverted_index/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
// limitations under the License.

pub mod fst_apply;
pub mod predicate;
pub mod fst_values_mapper;
pub mod predicate;
8 changes: 4 additions & 4 deletions src/index/src/inverted_index/search/fst_values_mapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ impl<'a> FstValuesMapper<'a> {
.await?;

// Ensure the longest BitVec is the left operand to prevent truncation during OR.
bitmap = if bm.len() > bitmap.len() {
bm | bitmap
if bm.len() > bitmap.len() {
bitmap = bm | bitmap
} else {
bitmap | bm
};
bitmap |= bm
}
}

Ok(bitmap)
Expand Down

0 comments on commit 1cc4b2c

Please sign in to comment.