Skip to content

Commit 7a3f356

Browse files
0c0w3bendk
authored andcommitted
Bug 1962283 - Make AmpMatchingStrategy discriminants start at 1
1 parent 783c886 commit 7a3f356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/suggest/src/provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pub enum AmpMatchingStrategy {
228228
/// Disable keywords added via keyword expansion.
229229
/// This eliminates keywords that for terms related to the "real" keywords, for example
230230
/// misspellings like "underarmor" instead of "under armor"'.
231-
NoKeywordExpansion,
231+
NoKeywordExpansion = 1, // The desktop consumer assumes this starts at `1`
232232
/// Use FTS matching against the full keywords, joined together.
233233
FtsAgainstFullKeywords,
234234
/// Use FTS matching against the title field

0 commit comments

Comments
 (0)