From 71d8f0fd173ac3e7e8bc17f9a7ade14460429c2c Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Wed, 11 Mar 2026 12:51:15 +0100 Subject: [PATCH] fix: resolve clippy too_many_arguments errors and upgrade CI to Rust 1.94 Move #[allow(clippy::too_many_arguments)] to module level so it propagates through Dioxus #[server] macro expansion. Upgrade CI container from rust:1.89 to rust:1.94 to match local toolchain. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ci.yml | 8 ++++---- compliance-dashboard/src/infrastructure/mod.rs | 1 + compliance-dashboard/src/infrastructure/repositories.rs | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c7de790..785a911 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: name: Format runs-on: docker container: - image: rust:1.89-bookworm + image: rust:1.94-bookworm steps: - name: Checkout run: | @@ -47,7 +47,7 @@ jobs: name: Clippy runs-on: docker container: - image: rust:1.89-bookworm + image: rust:1.94-bookworm steps: - name: Checkout run: | @@ -81,7 +81,7 @@ jobs: runs-on: docker if: github.ref == 'refs/heads/main' container: - image: rust:1.89-bookworm + image: rust:1.94-bookworm steps: - name: Checkout run: | @@ -104,7 +104,7 @@ jobs: runs-on: docker needs: [fmt, clippy, audit] container: - image: rust:1.89-bookworm + image: rust:1.94-bookworm steps: - name: Checkout run: | diff --git a/compliance-dashboard/src/infrastructure/mod.rs b/compliance-dashboard/src/infrastructure/mod.rs index 0bb113d..1033ae9 100644 --- a/compliance-dashboard/src/infrastructure/mod.rs +++ b/compliance-dashboard/src/infrastructure/mod.rs @@ -7,6 +7,7 @@ pub mod findings; pub mod graph; pub mod issues; pub mod mcp; +#[allow(clippy::too_many_arguments)] pub mod repositories; pub mod sbom; pub mod scans; diff --git a/compliance-dashboard/src/infrastructure/repositories.rs b/compliance-dashboard/src/infrastructure/repositories.rs index 60bdd7c..c684522 100644 --- a/compliance-dashboard/src/infrastructure/repositories.rs +++ b/compliance-dashboard/src/infrastructure/repositories.rs @@ -30,7 +30,6 @@ pub async fn fetch_repositories(page: u64) -> Result