Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ pub mod skim;
mod util;

#[cfg(not(feature = "compact"))]
type IndexType = usize;
pub type IndexType = usize;
#[cfg(not(feature = "compact"))]
type ScoreType = i64;
pub type ScoreType = i64;

#[cfg(feature = "compact")]
type IndexType = u32;
pub type IndexType = u32;
#[cfg(feature = "compact")]
type ScoreType = i32;
pub type ScoreType = i32;

pub trait FuzzyMatcher: Send + Sync {
/// fuzzy match choice with pattern, and return the score & matched indices of characters
Expand Down