Skip to content

feat(wasm-utxo): improve code quality with idiomatic Rust patterns - #12

Merged
OttoAllmendinger merged 9 commits into
masterfrom
BTC-2652.add-fixedscriptwallet-outputs.lint-fix
Oct 27, 2025
Merged

feat(wasm-utxo): improve code quality with idiomatic Rust patterns#12
OttoAllmendinger merged 9 commits into
masterfrom
BTC-2652.add-fixedscriptwallet-outputs.lint-fix

Conversation

@OttoAllmendinger

Copy link
Copy Markdown
Contributor

Makes cargo clippy happy

BTC-2652

OttoAllmendingerand others added 9 commits October 24, 2025 15:17
Export all public items from the address module instead of just the
utxolib_compat namespace.
Issue: BTC-2652
Co-authored-by: llm-git <llm-git@ttll.de>
Replace boolean equality comparisons with direct assertions and other idiomatic
patterns throughout the codebase. Improve function parameter handling by
removing unnecessary references and dereferences.
Issue: BTC-2652
Co-authored-by: llm-git <llm-git@ttll.de>
Use enumerate() with iterator in cashaddr polymod calculation for improved
readability. This eliminates manual indexing while maintaining the same
functionality.
Issue: BTC-2652
Co-authored-by: llm-git <llm-git@ttll.de>
Improves code clarity by replacing the manual match statement with the
more concise matches! macro for descriptor type checking.
Issue: BTC-2652
Co-authored-by: llm-git <llm-git@ttll.de>
Improve code quality by implementing the Display trait for WrapDescriptor
and refactoring the to_string method to use it, following best practices.
Added an allow annotation for clippy warning about shadowing Display trait.
Issue: BTC-2652
Co-authored-by: llm-git <llm-git@ttll.de>
Adds proper Display trait implementation for WrapMiniscript and refactors
toString to use it instead of directly calling the inner implementation.
Adds necessary clippy allow attribute to handle shadow warning.
Issue: BTC-2652
Co-authored-by: llm-git <llm-git@ttll.de>
Remove unnecessary blank line in cashaddr module's test section and refactor
multisig script parsing to use iterator methods instead of index-based
loops for better readability and safer iteration.
Issue: BTC-2652
Co-authored-by: llm-git <llm-git@ttll.de>
Implemented Clone trait for WrapPsbt to provide proper cloning functionality
and addressed clippy lint warnings about manually implementing the trait
method.
Issue: BTC-2652
Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger
OttoAllmendingerforce-pushed the BTC-2652.add-fixedscriptwallet-outputs.lint-fix branch from 0f1c070 to 6d5051cCompareOctober 24, 2025 13:36
@OttoAllmendinger
OttoAllmendinger marked this pull request as ready for review October 24, 2025 13:47
@OttoAllmendinger
OttoAllmendinger requested a review from a teamOctober 24, 2025 13:47
@OttoAllmendinger
OttoAllmendinger merged commit 9b0e841 into masterOct 27, 2025
1 check passed
@OttoAllmendinger
OttoAllmendinger deleted the BTC-2652.add-fixedscriptwallet-outputs.lint-fix branch October 27, 2025 13:41
Sign up for freeto 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

@OttoAllmendinger@ppongbitgo