Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy issues flagged by latest rust version (backport #13405) #13409

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 8, 2024

Summary

This commit fixes 2 issues flagged by running by clippy with Rust 1.82. We run clippy in CI with Qiskit's MSRV of 1.70, as sometimes clippy will flag failures for not using a syntax which isn't compatible with the MSRV. These issues flagged here are real, and good to fix, especially the docstring one, the //// comment isn't a docstring and that excludes the circuit diagram from the docs which wasn't the intent there.

Details and comments


This is an automatic backport of pull request #13405 done by [Mergify](https://mergify.com).

* Fix clippy issues flagged by latest rust version

This commit fixes 2 issues flagged by running by clippy with Rust 1.82.
We run clippy in CI with Qiskit's MSRV of 1.70, as sometimes clippy will
flag failures for not using a syntax which isn't compatible with the
MSRV. These issues flagged here are real, and good to fix, especially
the docstring one, the `////` comment isn't a docstring and that
excludes the circuit diagram from the docs which wasn't the intent
there.

* Remove unnecessary .borrow() call

---------

Co-authored-by: Raynel Sanchez <[email protected]>
(cherry picked from commit e631685)
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

@github-actions github-actions bot added Changelog: None Do not include in changelog Rust This PR or issue is related to Rust code in the repository labels Nov 8, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11740064501

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 2 files are covered.
  • 10 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.009%) to 88.919%

Files with Coverage Reduction New Missed Lines %
crates/accelerate/src/two_qubit_decompose.rs 1 92.12%
crates/qasm2/src/lex.rs 3 92.48%
crates/qasm2/src/parse.rs 6 97.15%
Totals Coverage Status
Change from base Build 11732538399: -0.009%
Covered Lines: 79051
Relevant Lines: 88902

💛 - Coveralls

@mtreinish mtreinish added this pull request to the merge queue Nov 8, 2024
Merged via the queue into stable/1.3 with commit 33f3881 Nov 8, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog Rust This PR or issue is related to Rust code in the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants