Skip to content

refactor: simplify is_simple and is_trivially_simple logic - #825

Merged
NSoiffer merged 3 commits into
daisy:mainfrom
moritz-gross:refactor/simplify-checks-in-xpath-functions
Oct 23, 2026
Merged

NSoiffer merged 3 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

github-actions Bot commented Sep 26, 2026 •

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 (bfd50e1) 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.

@moritz-gross moritz-gross added the rust Coding in Rust label Oct 20, 2026
@moritz-gross

Copy link
Copy Markdown
Collaborator Author

@NSoiffer generally, should I wait for you to approve straightforward changes like this, or just go ahead myself?

Put logical connectors at end like rest of code.

Also align conditions
@NSoiffer
NSoiffer merged commit 0b52244 into daisy:main Oct 23, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from Triage to Done in MathCAT Project Board Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Coding in Rust

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants