Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SimplificationOptions::OFF #38

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Conversation

abey79
Copy link
Member

@abey79 abey79 commented Dec 14, 2023

This enables easily running simplify() on a single category:

tree.simplify(&SimplificationOptions {
    prune_empty_tabs: true,
    ..SimplificationOptions::OFF
});

This enables easily running `simplify()` on a single category:

```rust
tree.simplify(&SimplificationOptions {
    prune_empty_tabs: true,
    ..SimplificationOptions::off()
});
```
@abey79 abey79 added the enhancement New feature or request label Dec 14, 2023
src/lib.rs Outdated Show resolved Hide resolved
@abey79 abey79 merged commit 7e5bf75 into main Dec 14, 2023
8 checks passed
@abey79 abey79 deleted the antoine/simplificationoptoins-off branch December 14, 2023 14:50
@emilk emilk changed the title Add SimplificationOptions::off() Add SimplificationOptions::OFF Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants