Skip to content

Commit

Permalink
add into-score feature for converting distances into scores
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Nov 15, 2023
1 parent df9d14f commit 0ef6e53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ fzf-v2 = ["fzf-v1"]

# Private features.
bench = ["tests"]
into-score = []
tests = ["fzf-v1", "fzf-v2"]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/algos/fzf/distance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl FzfDistance {
}

/// TODO: docs
#[cfg(feature = "tests")]
#[cfg(any(feature = "into-score", feature = "tests"))]
#[inline(always)]
pub fn into_score(self) -> Score {
self.0
Expand Down

0 comments on commit 0ef6e53

Please sign in to comment.