From e482ed685cd41224bd8e16767d0d5f27001a7fe7 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 14 Nov 2024 19:25:03 -0600 Subject: [PATCH] ci: disable auto deployment and fix clippy audit --- .github/workflows/fly-deploy.yml | 58 +++++++++++++-------------- src/nearblocks_client/transactions.rs | 4 +- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/fly-deploy.yml b/.github/workflows/fly-deploy.yml index 0bbf439..d9f8320 100644 --- a/.github/workflows/fly-deploy.yml +++ b/.github/workflows/fly-deploy.yml @@ -1,31 +1,31 @@ -# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/ +# # See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/ -name: Fly Deploy -on: - push: - branches: - - main +# name: Fly Deploy +# on: +# push: +# branches: +# - main -jobs: - deploy: - name: Deploy Applications - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: superfly/flyctl-actions/setup-flyctl@master - - name: Deploy Devhub - run: flyctl deploy --remote-only -c fly.toml - env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} - - name: Deploy Infra - run: flyctl deploy --remote-only -c fly.infra.toml - env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} - - name: Deploy Events - run: flyctl deploy --remote-only -c fly.events.toml - env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} - - name: Deploy Templar - run: flyctl deploy --remote-only -c fly.templar.toml - env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} +# jobs: +# deploy: +# name: Deploy Applications +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v4 +# - uses: superfly/flyctl-actions/setup-flyctl@master +# - name: Deploy Devhub +# run: flyctl deploy --remote-only -c fly.toml +# env: +# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} +# - name: Deploy Infra +# run: flyctl deploy --remote-only -c fly.infra.toml +# env: +# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} +# - name: Deploy Events +# run: flyctl deploy --remote-only -c fly.events.toml +# env: +# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} +# - name: Deploy Templar +# run: flyctl deploy --remote-only -c fly.templar.toml +# env: +# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/src/nearblocks_client/transactions.rs b/src/nearblocks_client/transactions.rs index 91bdd7d..78ae9f2 100644 --- a/src/nearblocks_client/transactions.rs +++ b/src/nearblocks_client/transactions.rs @@ -137,7 +137,7 @@ fn get_rfp_id(transaction: &Transaction) -> Result { .ok_or("No actions found in transaction")?; let args: PartialEditRFPArgs = - serde_json::from_str(&action.args.as_ref().unwrap()).map_err(|e| { + serde_json::from_str(action.args.as_ref().unwrap()).map_err(|e| { eprintln!("Failed to parse JSON: {:?}", e); "Failed to parse proposal arguments" })?; @@ -251,7 +251,7 @@ fn get_proposal_id(transaction: &Transaction) -> Result { .and_then(|actions| actions.first()) .ok_or("No actions found in transaction")?; - let args: PartialEditProposalArgs = serde_json::from_str(&action.args.as_ref().unwrap()) + let args: PartialEditProposalArgs = serde_json::from_str(action.args.as_ref().unwrap()) .map_err(|e| { eprintln!("Failed to parse JSON: {:?}", e); "Failed to parse proposal arguments"