Skip to content

Fix clippy::question_mark warnings in FFI load() impls#1491

Merged
DanGould merged 1 commit intopayjoin:masterfrom
codaMW:fix/ffi-clippy-question-mark
Apr 20, 2026
Merged

Fix clippy::question_mark warnings in FFI load() impls#1491
DanGould merged 1 commit intopayjoin:masterfrom
codaMW:fix/ffi-clippy-question-mark

Conversation

@codaMW
Copy link
Copy Markdown
Contributor

@codaMW codaMW commented Apr 19, 2026

Fixes pre-existing clippy::question_mark warnings in the FFI
SessionPersister::load() implementations for both sender and receiver.

These were causing Lint-FFI CI failures on PRs unrelated to payjoin-ffi,
including #1490.

Pull Request Checklist

  • I have disclosed my use of AI in the body of this PR.
  • I have read CONTRIBUTING.md and rebased my branch to produce hygienic commits.

Disclosure: I consulted Claude to understand the codebase structure,
but the solution was authored by myself.

Replace match expressions that can be simplified with ? operator
in the SessionPersister::load() implementations for both sender
and receiver FFI persisters.

Disclosure: I consulted Claude to understand the codebase structure,
but the solution was authored by myself.
@coveralls
Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 24623924836

Coverage remained the same at 84.474%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 12843
Covered Lines: 10849
Line Coverage: 84.47%
Coverage Strength: 411.04 hits per line

💛 - Coveralls

Copy link
Copy Markdown
Contributor

@caarloshenriq caarloshenriq left a comment

Choose a reason for hiding this comment

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

ACK 2866fd7

Copy link
Copy Markdown
Contributor

@DanGould DanGould left a comment

Choose a reason for hiding this comment

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

utACK 2866fd7

1 less box 1 less warning 🙌

Thank you for your contributions of code & reviews peoples

@DanGould DanGould merged commit f53cec6 into payjoin:master Apr 20, 2026
23 checks passed
@codaMW
Copy link
Copy Markdown
Contributor Author

codaMW commented Apr 20, 2026

Thank you so much everyone, glad to be part of this amazing team

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.

5 participants