diff --git a/Cargo.toml b/Cargo.toml index 31c20c3..4b7f298 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ fzf-v2 = ["fzf-v1"] # Private features. bench = ["tests"] +into-score = [] tests = ["fzf-v1", "fzf-v2"] [dependencies] diff --git a/src/algos/fzf/distance.rs b/src/algos/fzf/distance.rs index e77a5ea..dbd0dcb 100644 --- a/src/algos/fzf/distance.rs +++ b/src/algos/fzf/distance.rs @@ -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