Skip to content

Fix all clippy warnings across the codebase#21

Draft
0xZaddyy wants to merge 22 commits intopayjoin:masterfrom
0xZaddyy:clippy-warnings
Draft

Fix all clippy warnings across the codebase#21
0xZaddyy wants to merge 22 commits intopayjoin:masterfrom
0xZaddyy:clippy-warnings

Conversation

@0xZaddyy
Copy link
Copy Markdown
Contributor

this pr resolves all cargo clippy --workspace --all-targets --all-features warnings so the tree builds clean under clippy.

closes #20

@0xZaddyy
Copy link
Copy Markdown
Contributor Author

I need to rebase to resolve the conflicts.

@arminsabouri arminsabouri mentioned this pull request Apr 14, 2026
@arminsabouri
Copy link
Copy Markdown
Collaborator

As part of this PR, please add clippy checks to CI. Thanks

arminsabouri and others added 19 commits April 14, 2026 18:52
Given an order book of UTXOs and a takers utxos which
order book utxos we generate a list of cospends candidates.
This action costs more if you have payment obligations. Or
if you already have a input registered. In the future this can be
smarter and internalize the cost of registering specific inputs with
respect to the po's and privacy budget.
As its replaced by create cospend. 
And explicitly assign cost to accepting the co spend.
Return registered inputs from order book
Mark po's as success if they are handled in the a cospend.
This commit also folds all action outcomes into on Outcome struct which
defines how the wallet state has changes. This allows us to reconcile cost terms
to one metacost function and eval global wallet changes in one place.
As its replaced by create cospend methods
First run all unilateral actions available to a strategy, find what inputs are
common in all plans, register than inputs.
Orderbook utxos are utxos that capture some metadata including:
amount and owner.
Co-Authored-By: bc1cindy <bc1cindy@proton.me>
Address warnings from `cargo clippy --workspace --all-targets --all-features` :
renamed deprecated `gen_range` to `random_range`, simplified iterator/borrow patterns, derived `Default` where possible, used `div_ceil`/`is_multiple_of`, switched HashMap access to `entry` API, dropped redundant closures and `clone()` on Copy types, and annotated intentionally unused API methods with `#[allow(dead_code)]`.
@0xZaddyy 0xZaddyy marked this pull request as draft April 14, 2026 18:08
Address warnings from `cargo clippy --workspace --all-targets --all-features` :
renamed deprecated `gen_range` to `random_range`, simplified iterator/borrow patterns, derived `Default` where possible, used `div_ceil`/`is_multiple_of`, switched HashMap access to `entry` API, dropped redundant closures and `clone()` on Copy types, and annotated intentionally unused API methods with `#[allow(dead_code)]`.
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.

Resolve Clippy warnings in preparation for tx-indexer migration

2 participants