Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

Makes cargo clippy happy

BTC-2652

OttoAllmendinger and 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 OttoAllmendinger force-pushed the BTC-2652.add-fixedscriptwallet-outputs.lint-fix branch from 0f1c070 to 6d5051c Compare October 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 team as a code owner October 24, 2025 13:47
@OttoAllmendinger OttoAllmendinger merged commit 9b0e841 into master Oct 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 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.

3 participants