diff options
author | Canop <cano.petrole@gmail.com> | 2021-03-05 15:45:18 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-03-05 15:45:18 +0100 |
commit | ef45e487fba5a6f108346ad328ad02c75d1cffc1 (patch) | |
tree | 0edcefd68287963ae9b7acc644ff15e370c17402 /src/pattern | |
parent | a965b995fc845e9404e018ff6ccb40fcc8a2adf0 (diff) |
remove costly debugs
Diffstat (limited to 'src/pattern')
-rw-r--r-- | src/pattern/fuzzy_pattern.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/pattern/fuzzy_pattern.rs b/src/pattern/fuzzy_pattern.rs index 031e104..58c78b0 100644 --- a/src/pattern/fuzzy_pattern.rs +++ b/src/pattern/fuzzy_pattern.rs @@ -110,13 +110,10 @@ impl FuzzyPattern { let last_idx = pos.len() - 1; // The last char of the previous group is at index last_idx-1 if pos[last_idx-1] > pos[last_idx-2] + 1 { - debug!("singled char in {:?}", cand_chars.iter().collect::<String>()); - debug!("before merge: {:?}", &pos); // The last group was of size 1, it's a singled char. // But maybe it can be rattached to the new group ? if self.chars[pat_idx-1] == cand_chars[pos[last_idx]-1] { pos[last_idx-1] = pos[last_idx] - 1; - debug!("merging singled char -> {:?}", &pos); nb_holes -= 1; } else { nb_singled_chars += 1; |