Skip to content

Fix Clippy Warnings Across Entire Codebase #284

@Timi16

Description

@Timi16

Description

Running cargo clippy -- -D warnings currently produces several warnings across the codebase. Fix all of them so we can enforce clippy as a hard CI gate.

Requirements

  • Run cargo clippy -- -D warnings and fix every warning
  • Do not suppress warnings with #[allow(...)] unless absolutely necessary — fix the root cause
  • Add clippy enforcement to CI so it never regresses
  • Categories to fix: needless borrows, redundant clones, unused variables, match simplifications

Suggested Execution

  1. Branch: git checkout -b fix/clippy-warnings
  2. Run cargo clippy -- -D warnings 2>&1 | tee clippy.txt
  3. Fix each warning category by category
  4. Re-run until zero warnings
  5. Update CI yml to run cargo clippy -- -D warnings
  6. Commit: fix: resolve all clippy warnings

Acceptance Criteria

  • cargo clippy -- -D warnings exits with code 0
  • No #[allow(...)] suppressions added without comment explaining why
  • CI updated to enforce clippy
  • Zero regressions in existing tests

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions