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

Qiskit / qiskit / 24044327820
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: jan_cf_pauli_rotns
DEFAULT BRANCH: main
Ran 06 Apr 2026 06:46PM UTC
Jobs 1
Files 932
Run time 2min
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

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

0 of 1 new or added line in 1 file covered. (0.0%)

19 existing lines in 2 files now uncovered.

104379 of 119297 relevant lines covered (87.5%)

1022726.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
63.4
0.0% crates/qpy/src/bytes.rs

Coverage Regressions

Lines Coverage ∆ File
12
97.15
-0.95% crates/qasm2/src/parse.rs
7
91.77
-0.77% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 24044327820.1 06 Apr 2026 06:46PM UTC 932
87.5
GitHub Action Run
Source Files on build 24044327820
  • Tree
  • List 932
  • Changed 4
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24044327820
  • 6be537fe on github
  • Prev Build on gh-readonly-queue/main/pr-15888-09afc5052ce35d5f05af9ce2418f6e298239c5d1 (#24034262798)
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