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

rust-bitcoin / rust-bitcoin / 9795105132 / 1
83%
master: 83%

Build:
DEFAULT BRANCH: master
Ran 04 Jul 2024 01:20PM UTC
Files 93
Run time 2s
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

04 Jul 2024 01:19PM UTC coverage: 82.943% (-0.07%) from 83.014%
9795105132.1

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#2951: Fix `Amount` decimals handling

<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/3196c271acefe2b68783c8bc128c75942c978ba2">3196c271a<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/014c4931be9edb530b1db15e14feeca5506cad6b"> Deprecate `Amount::fmt_value_in` (Martin Habovstiak)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/467546fc0c13c9ed75ce26fa76252d363c4d07e7">467546fc0</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/014c4931be9edb530b1db15e14feeca5506cad6b"> Round `Amount` when requested precision is too low (Martin Habovstiak)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/7c95a777c1435eb1aa53705fb97ed02411853614">7c95a777c</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/014c4931be9edb530b1db15e14feeca5506cad6b"> Fix `Amount` decimals handling (Martin Habovstiak)

Pull request description:

  Displaying with minimal number of zeros is the default in Rust and we want to follow it. This was originally implemented in #716 but #2604 reversed it claiming this is common, however it broke people who rely on minimal display (e.g. BIP21) without fixing the root cause of #2136.

  This reverts commit </a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/d887423efcdad8db4c60ffe61f53d2356c82c87c">d887423ef adds a test to prevent this change and also fixes the problem with `{:0.8}` not working.

  Closes #2136
  Closes #2948

  Can we backport this one too?

ACKs for top commit:
  tcharding:
    ACK 3196c271acefe2b68783c8bc128c75942c978ba2
  apoelstra:
    ACK 3196c271acefe2b68783c8bc128c75942c978ba2 I also really like how this reduces the complexity of the module, basically passing everything through to `display_in`

Tree-SHA512: 3221f8308bba12096011b515d4662cf7b6a

19504 of 23515 relevant lines covered (82.94%)

15653.76 hits per line

Source Files on job 9795105132.1
  • Tree
  • List 0
  • Changed 10
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9795105132
  • 014c4931 on github
  • Prev Job for on master (#9784338166.1)
  • Next Job for on master (#9797802447.1)
  • 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