Add and apply most of rust-bitcoin's lints - #140
Conversation
c2e655d to
de8c93a
Compare
|
Added the ~$ cargo rbmt test
[...]
Tests complete.
Test Summary
Commit: de8c93a0b0bdd4864cb512bd5344a81a925cf2a2
Package: rustreexo
Examples : stump_modify, stump_modify:std, stump_modify:with-serde, stump_modify:with-serde std, proof_update, proof_update:std, proof_update:with-serde, proof_update:with-serde std, custom_hash, custom_hash:std, custom_hash:with-serde, custom_hash:with-serde std
Individual features: serde, std, with-serde
Feature subsets : [serde, std], [serde, with-serde], [std, with-serde]
+ No-std check : ran |
1bdc74d to
243e3cb
Compare
243e3cb to
425181b
Compare
425181b to
b3b859c
Compare
|
@Davidson-Souza latest reviews are addressed |
b3b859c to
ee6851d
Compare
|
ee6851d rebased on |
|
Needs rebase again |
b9eaf93 to
e29d1fe
Compare
|
e29d1fe rebased on |
|
eaf1f5d bumped toolchains and fixed |
|
Needs rebase again again |
eaf1f5d to
b0e958b
Compare
|
b0e958b rebased on |
b0e958b to
b880e2b
Compare
|
b880e2b rebased on main (again again again) |
|
ping @Davidson-Souza |
b880e2b to
a4f6a97
Compare
|
5c27c60 rebased on |
a4f6a97 to
5c27c60
Compare
|
|
||
| - name: Run Tests | ||
| run: cargo rbmt test --toolchain ${{ matrix.toolchain }} --lockfile ${{ matrix.lockfile }} | ||
|
|
There was a problem hiding this comment.
Wait, on 2e541cb I see you removing the old way, but where did the rbmt version is implemented?
There was a problem hiding this comment.
The #![no_std] on lib.rs will trigger the check.
| explicit_iter_loop = "warn" | ||
| filter_map_next = "warn" | ||
| flat_map_option = "warn" | ||
| float_cmp = "allow" # Bitcoin floats are typically limited to 8 decimal places and we want them exact. |
There was a problem hiding this comment.
We don't do float pointing here
There was a problem hiding this comment.
I just copy-pasted it from rust-bitcoin
* Bump the Rust edition to 2021 (released on Rust 1.56.0) * Add the `tools` field to `[package.metadata.rbmt]`, such that CI and local `cargo-audit` and Zizmor versions are in sync * Update the Zizmor CI job to set up rbmt's tools * Update the justfile and README
The `default_trait_access` lint complained that we were instantiating a `HashMap` with `HashMap::with_hasher(Default::default())`. I've mirrored the helpers on the `std` prelude such that we may keep the two in sync.
Import the `std` crate, feature gated on the `std` feature, and add the `#![no_std]` attribute such that `cargo-rbmt` also tests the crate in a no-std target (`thumbv7m-none-eabi`).
Add and apply all `rust-bitcoin` lints, except for documentation lints.
* Bump `stable` from 1.96.0 to 1.97.1 * Bump `nightly` from `nightly-2026-06-23` to `nightly-2026-08-04` * Fix the `clippy::mut_mut` lint on `Stump::serialize`
5c27c60 to
d2470b7
Compare
|
d2470b7 updated documentation |
Changelog