Skip to content

refactor: simplify is_simple and is_trivially_simple logic - #825

Open
moritz-gross wants to merge 2 commits into
daisy:mainfrom
moritz-gross:refactor/simplify-checks-in-xpath-functions
Open

moritz-gross wants to merge 2 commits into
daisy:mainfrom
moritz-gross:refactor/simplify-checks-in-xpath-functions

Conversation

@moritz-gross

Copy link
Copy Markdown
Collaborator

both checks can be done using a compact boolean expression.
elem.children().is_empty() is redundant due to the checks afterward.

@github-actions

Copy link
Copy Markdown
Linux library size: 0.58 MiB (+0.00%)
Revision Release liblibmathcat.so
Base (89d018b) 0.58 MiB (605,448 bytes)
PR (472f8f5) 0.58 MiB (605,456 bytes)
Change +8 bytes (+0.00%)

Built with default features, Rust 1.96.0, and Ubuntu 24.04. Workflow run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant