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

rust-bitcoin / rust-bitcoin / 8973396166
83%

Build:
DEFAULT BRANCH: master
Ran 06 May 2024 05:47PM UTC
Jobs 1
Files 92
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

06 May 2024 05:46PM UTC coverage: 83.172% (+0.009%) from 83.163%
8973396166

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#2746: hashes: Modify trait bounds

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/d094350230757afb3f0bf93cf49ea2a051153090">d09435023 hashes: Modify trait bounds (Tobin C. Harding)

Pull request description:

  Currently we require indexing trait bounds as well as `Borrow` on the `Hash` trait. We also already implement `AsRef`.

  It was observed that `Borrow<[u8]>` does not best describe what we want from the `Hash` trait implementor but rather `AsRef<[u8]>` does.

  Remove all the inexing trait bounds. Remove the `borrow::Borrow<[u8]>` trait bound. Add a `convert::AsRef<[u8]>` trait bound.

  This leaves the `Borrow<[u8]>` implementation for hashes created with `hash_newtype`, I'm not sure if this should be removed or not.

ACKs for top commit:
  apoelstra:
    ACK d094350230757afb3f0bf93cf49ea2a051153090 thanks! FWIW I think we might want to return the indexing traits one day, at least `[..]`, but we can do that post-1.0 and we have not gotten any complaints after removing them from the non-HMAC hashes, so maybe people are good with it as is.

Tree-SHA512: 2704a7e85bbe6e0fb5acd663be6104d813e

10 of 10 new or added lines in 3 files covered. (100.0%)

19192 of 23075 relevant lines covered (83.17%)

16800.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8973396166.1 06 May 2024 05:47PM UTC 0
83.17
GitHub Action Run
Source Files on build 8973396166
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #8973396166
  • 16261c7c on github
  • Prev Build on master (#8969283404)
  • Next Build on master (#8987003768)
  • 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