From 3074da8ae8cfa9e38580169b3fb41ef2f80b8e2e Mon Sep 17 00:00:00 2001 From: Kyler Chin <7539174+kylerchin@users.noreply.github.com> Date: Wed, 27 Mar 2024 02:33:45 -0700 Subject: [PATCH] Rework clippy steps --- .github/workflows/rust-clippy.yml | 5 +++++ src/maple/gtfs_ingestion_sequence/shapes_into_postgres.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 5a275df2..4aaa5e05 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -2,8 +2,13 @@ on: push name: Clippy check jobs: clippy_check: + permissions: + checks: write + contents: read runs-on: ubuntu-latest steps: + - name: Install Dependencies + run: sudo apt install protobuf-compiler redis - uses: actions/checkout@v1 - uses: actions-rs/toolchain@v1 with: diff --git a/src/maple/gtfs_ingestion_sequence/shapes_into_postgres.rs b/src/maple/gtfs_ingestion_sequence/shapes_into_postgres.rs index a0a8d971..3bb9224a 100644 --- a/src/maple/gtfs_ingestion_sequence/shapes_into_postgres.rs +++ b/src/maple/gtfs_ingestion_sequence/shapes_into_postgres.rs @@ -22,7 +22,7 @@ pub async fn shapes_into_postgres( arc_conn_pool: Arc>, chateau_id: &str, attempt_id: &str, -) -> Result<(), Box> { +) -> Result<(), Box> { //establish a connection to the database let conn_pool = arc_conn_pool.as_ref(); let conn_pre = conn_pool.get().await;