Commit 24ec3cee authored by David Corbett's avatar David Corbett
Browse files

Only import `snowball::Among` in Rust if needed

parent ccd852ff
......@@ -1120,7 +1120,9 @@ static void generate_allow_warnings(struct generator * g) {
static void generate_class_begin(struct generator * g) {
w(g, "use snowball::SnowballEnv;~N");
w(g, "use snowball::Among;~N~N");
if (g->analyser->among_count > 0) {
w(g, "use snowball::Among;~N~N");
}
}
static void generate_among_table(struct generator * g, struct among * x) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment