Skip to content

Replace unwrap() with let Some(...) else constructs for safer option handling - #810

Merged
moritz-gross merged 2 commits into
daisy:mainfrom
moritz-gross:improve-option-pattern-matching
Sep 24, 2026
Merged

moritz-gross merged 2 commits into
daisy:mainfrom
moritz-gross:improve-option-pattern-matching

Conversation

@moritz-gross

Copy link
Copy Markdown
Collaborator

Rust provides pattern matching for Option and Result so that .unwrap(), .is_none() etc is basically not needed anymore.
reduces complexity and LOC

Comment thread src/xpath_functions.rs Outdated
@moritz-gross
moritz-gross merged commit 2b80113 into daisy:main Sep 24, 2026
10 checks passed
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