Skip to content

Commit

Permalink
suggester: Stub ngram suggestions callsite
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Sep 26, 2024
1 parent 4f9a194 commit 2cf7312
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/suggester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ impl<'a, S: BuildHasher> Suggester<'a, S> {
_ => todo!(),
}

// TODO: remove. Currently used to suppress an unused_variable lint.
assert!(!hq_suggestions);
if !hq_suggestions && self.checker.aff.options.max_ngram_suggestions != 0 {
// TODO.
}

// Some suggestion methods can cause duplicates. For example in "adveenture",
// extra_char_suggest can eliminate either inner 'e' causing a duplicate "adventure"
Expand Down

0 comments on commit 2cf7312

Please sign in to comment.