• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rust-bitcoin / rust-bitcoin / 14068638141
83%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2025 07:40PM UTC
Jobs 1
Files 129
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Mar 2025 07:39PM UTC coverage: 83.604%. Remained the same
14068638141

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4271: Make code style consistent and fix naming in macro Array implementations

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/e744347022d1ad1e0ca0a83ec9350501af08297b">e74434702<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/cf79f05ad68038b8d1e76d2773b6dbe3655b414f"> Make usage of Self and type uniform across both modules (Erick Cestari)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/dfb49f014c2c5194f9ae0c1c1e6910a6e1b6189d">dfb49f014</a> Rename impl_try_from_array to impl_from_array (Erick Cestari)

Pull request description:

  This PR makes two main changes:

  1. Standardizes the function signatures in the `Amount` and `SignedAmount` implementations by consistently using `Self` as the return type instead of the concrete type names. This improves code consistency, maintainability, and follows Rust's idiomatic practices.
  2. Renames `impl_try_from_array` to `impl_from_array` to better reflect its functionality.

  ### Changes
  **Consistent usage of Self instead of concrete types**

  - Replace all occurrences of `-> Amount` with `-> Self `in unsigned.rs
  - Replace all occurrences of `-> SignedAmount` with `-> Self` in signed.rs
  - Make similar replacements for Option/Result return types
  - Use `Self::` instead of explicit type name for static method calls

  **Function rename**

  Renamed `impl_try_from_array` to `impl_from_array` for better clarity

  ### Related Issues

  Closes #4210

  Closes #4241

ACKs for top commit:
  Kixunil:
    ACK e744347022d1ad1e0ca0a83ec9350501af08297b
  tcharding:
    ACK e744347022d1ad1e0ca0a83ec9350501af08297b
  apoelstra:
    ACK e744347022d1ad1e0ca0a83ec9350501af08297b; successfully ran local tests

Tree-SHA512: 3113f3ccfcb55a13658da87a1bc4958a3bb

31 of 38 new or added lines in 2 files covered. (81.58%)

3 existing lines in 2 files now uncovered.

22253 of 26617 relevant lines covered (83.6%)

16779.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
81.05
0.0% units/src/amount/signed.rs
2
83.33
0.0% units/src/amount/unsigned.rs

Coverage Regressions

Lines Coverage ∆ File
2
81.05
0.0% units/src/amount/signed.rs
1
83.33
0.0% units/src/amount/unsigned.rs
Jobs
ID Job ID Ran Files Coverage
1 14068638141.1 25 Mar 2025 07:40PM UTC 129
83.6
GitHub Action Run
Source Files on build 14068638141
  • Tree
  • List 129
  • Changed 3
  • Source Changed 3
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14068638141
  • cf79f05a on github
  • Prev Build on master (#14045014433)
  • Next Build on master (#14074087374)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc