From 549f8d489f3b816dba63badb86a2c59d33b62c68 Mon Sep 17 00:00:00 2001 From: Purvesh Date: Sun, 17 Nov 2024 11:20:02 +1300 Subject: [PATCH] rust clippy updated --- .github/workflows/rust-clippy.yml | 9 +-------- src/api/handlers/asset/rename_asset_api_handler.rs | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 6e962723..44a7f8bc 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -9,14 +9,7 @@ name: rust-clippy analyze -on: - push: - branches: [ "main" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "main" ] - schedule: - - cron: '15 3 * * 6' +on: [push, pull_request] jobs: rust-clippy-analyze: diff --git a/src/api/handlers/asset/rename_asset_api_handler.rs b/src/api/handlers/asset/rename_asset_api_handler.rs index d279a048..e6270519 100644 --- a/src/api/handlers/asset/rename_asset_api_handler.rs +++ b/src/api/handlers/asset/rename_asset_api_handler.rs @@ -36,7 +36,7 @@ pub async fn rename_asset_api_handler( return Err(Error::BadRequest(error_response)); } - + let asset_model = state.asset_service .find_by_id(&state.db, &asset_id) .await?;