Review clippy configuration and address warnings as appropriate

Open
#555 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
tooling

Research direction

Start by reviewing the existing Clippy configuration in lib.rs and the Cargo.toml lint configuration options, then identify how result_large_error and the other listed lints are currently handled. Done means the configuration is reviewed and moved into Cargo.toml where appropriate, with suitable code fixes applied for warnings such as result_large_error.

Written by the indexing model from the issue text.

Description

Our clippy allow/deny list is a bit dated (and in particular, it predates the ability to specify the lint levels in Cargo.toml, which is preferable to doing so in lib.rs). We have at least one performance-oriented list, result_large_error, that we should fix in the code, but which is currently configured as a warning. We should review the configuration, move it into Cargo.toml, and apply code fixes where appropriate.

Dominant language
Rust
Stars
15
Forks
4
Avg merge
10h 36m
Merged PRs (30d)
2

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rigetti/qcs-sdk-rust

All issues in rigetti/qcs-sdk-rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.