Skip to content

linked_hash_set: replace match with ? operator - #53

Merged
djc merged 1 commit into
djc:mainfrom
tangaac:fix/question-mark-lint
Aug 26, 2026
Merged

linked_hash_set: replace match with ? operator#53
djc merged 1 commit into
djc:mainfrom
tangaac:fix/question-mark-lint

Conversation

@tangaac

@tangaac tangaac commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Newer clippy versions flag match expr { None => return None, Some(x) => ... }
with the question_mark lint. With -D warnings in CI, this breaks the
build on newer toolchains.

Replace the two match expressions in linked_hash_set.rs with the ?
operator.

Verification

cargo clippy --all-targets --all-features -- -D warnings passes.

Newer clippy flags `match expr { None => return None, Some(x) => ... }`
with the `question_mark` lint. Replace with the `?` operator to satisfy
`-D warnings`.

@djc djc left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@djc
djc merged commit 4ea1901 into djc:main Aug 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants