Skip to content

Commit

Permalink
Merge #261
Browse files Browse the repository at this point in the history
261: Fix unused FstSegmenter warning when not using khmer compiler features r=irevoire a=timvisee

# Pull Request

## Related issue
Fixes <#260>
Depends on <#259>

## What does this PR do?
- Fixes compilation warnings without `thai` or `khmer` features
- Puts related module behind conditional feature attribute

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: timvisee <[email protected]>
  • Loading branch information
meili-bors[bot] and timvisee authored Jan 30, 2024
2 parents ecd5e99 + b9cc7c2 commit ec889b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions charabia/src/segmenter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ mod korean;
mod latin;
#[cfg(feature = "thai")]
mod thai;
#[cfg(any(feature = "thai", feature = "khmer"))]
mod utils;

/// List of used [`Segmenter`]s linked to their corresponding [`Script`] and [`Language`].
Expand Down

0 comments on commit ec889b6

Please sign in to comment.