From c34d92e7af8c347dbfe91de4f5cd812987ff6860 Mon Sep 17 00:00:00 2001 From: Hamid Ghadyani Date: Wed, 20 Sep 2023 20:29:21 -0400 Subject: [PATCH] Fix 'cargo fmt/clippy' issues. - Fix issue in test.yml --- .github/workflows/test.yml | 2 +- src/commands/delete.rs | 4 +++- src/workflow_config.rs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3fcb6ac..e4a8e33 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: build_non_fat: name: Run non-fat tests on ubuntu runs-on: ubuntu-latest - if: ${{ env.RELEASE_COMMIT != 'true' }} + if: ${{ github.ref_type != 'tag' }} # if: ${{ github.ref_type == 'branch' && github.ref_name == 'develop' }} steps: - uses: actions/checkout@v2 diff --git a/src/commands/delete.rs b/src/commands/delete.rs index ee3399d..88bc940 100644 --- a/src/commands/delete.rs +++ b/src/commands/delete.rs @@ -14,7 +14,9 @@ use std::io::Write; impl<'api, 'pin> Runner<'api, 'pin> { pub fn delete(&mut self, cmd: SubCommand) { debug!("Starting in delete"); - let SubCommand::Delete { url, tag } = cmd else { unreachable!() }; + let SubCommand::Delete { url, tag } = cmd else { + unreachable!() + }; match self.perform_delete(url, tag) { Ok(s) if !s.is_empty() => { io::stdout() diff --git a/src/workflow_config.rs b/src/workflow_config.rs index 7ad2887..ba8ca9d 100644 --- a/src/workflow_config.rs +++ b/src/workflow_config.rs @@ -34,7 +34,7 @@ impl fmt::Debug for Config { .field("update_time", &self.update_time) .field("workflow_data_dir", &self.workflow_data_dir) .field("workflow_cache_dir", &self.workflow_cache_dir) - .finish() + .finish_non_exhaustive() } }