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 cargo clippy and rustfmt for Rust 1.79 #12710

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

mtreinish
Copy link
Member

Summary

After the recently merged #12543 when working with Rust 1.79 cargo fmt makes a small formatting change that rust 1.70 wouldn't and clippy makes flags a &Vec<_> that should be a slice &[_] instead. This commit makes these two small chagnes so they're not an issue for people building with the latest stable version of rust, not just our MSRV.

Details and comments

After the recently merged Qiskit#12543 when working with Rust 1.79 cargo fmt
makes a small formatting change that rust 1.70 wouldn't and clippy makes
flags a &Vec<_> that should be a slice &[_] instead. This commit makes
these two small chagnes so they're not an issue for people building with
the latest stable version of rust, not just our MSRV.
@mtreinish mtreinish added type: qa Issues and PRs that relate to testing and code quality Changelog: None Do not include in changelog Rust This PR or issue is related to Rust code in the repository labels Jul 2, 2024
@mtreinish mtreinish requested review from alexanderivrii, ShellyGarion and a team as code owners July 2, 2024 17:41
@qiskit-bot
Copy link
Collaborator

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

  • @Qiskit/terra-core
  • @kevinhartman
  • @mtreinish

@coveralls
Copy link

coveralls commented Jul 2, 2024

Pull Request Test Coverage Report for Build 9765579291

Details

  • 2 of 3 (66.67%) changed or added relevant lines in 1 file are covered.
  • 18 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 89.777%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/accelerate/src/synthesis/permutation/utils.rs 2 3 66.67%
Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 6 92.11%
crates/qasm2/src/parse.rs 12 96.23%
Totals Coverage Status
Change from base Build 9764077548: -0.02%
Covered Lines: 64520
Relevant Lines: 71867

💛 - Coveralls

@jakelishman jakelishman enabled auto-merge July 2, 2024 18:59
@jakelishman jakelishman added this pull request to the merge queue Jul 2, 2024
Merged via the queue into Qiskit:main with commit 3fb1753 Jul 2, 2024
15 checks passed
@mtreinish mtreinish deleted the lint-rs-fix branch July 2, 2024 20:14
Procatv pushed a commit to Procatv/qiskit-terra-catherines that referenced this pull request Aug 1, 2024
After the recently merged Qiskit#12543 when working with Rust 1.79 cargo fmt
makes a small formatting change that rust 1.70 wouldn't and clippy makes
flags a &Vec<_> that should be a slice &[_] instead. This commit makes
these two small chagnes so they're not an issue for people building with
the latest stable version of rust, not just our MSRV.
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 type: qa Issues and PRs that relate to testing and code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants