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

Qiskit / qiskit / 24044327820 / 1
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-15778-32b3eceec4f5e47bb4bbb8a04384e1729fac7a2b
DEFAULT BRANCH: main
Ran 06 Apr 2026 06:46PM UTC
Files 932
Run time 32s
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 Apr 2026 06:16PM UTC coverage: 87.495% (-0.01%) from 87.507%
24044327820.1

push

github

web-flow
Fix clippy warning in qpy module (#15951)

This commit fixes a clippy error in the qpy module when running clippy
with the latest stable rust release. In #15698 we denied the use of
unwrap() or expect() to minimize the chance of the qpy module panicking.
We shouldn't ever panic in the qpy module because anything that causes
an error condition was caused by malformed input and should be
reported to the user and be handleable and not cause a hard crash.
However, the clippy check apparently isn't as exhaustive on our MSRV
of 1.85 and it didn't catch the usage of unwrap() in one place. This
is causing a failure when you do run clippy with a newer version of
Rust.

This commit fixes this error by throwing away the error condition. In
this case the call to the `write!()` macro is infallible since it's
just the string format which is infallible unless the underlying write
fails [1]. But since we're writing to a `String` object that we just
allocated in this case there is never a way or this to fail short of a
hardware failure. So to solve the clippy error and prevent it from
becoming a CI failure in the future this commit opts to just discard the
error without using it.

[1] https://doc.rust-lang.org/std/fmt/struct.Error.html

104379 of 119297 relevant lines covered (87.5%)

1022726.0 hits per line

Source Files on job 24044327820.1
  • Tree
  • List 932
  • Changed 4
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24044327820
  • 6be537fe on github
  • Prev Job for on gh-readonly-queue/main/pr-15951-12bb3efc7624381609eb5ec15c299563681ebd6f (#24034262798.1)
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