From 4fb0ac739eb1c921aa3d4757b534228bfd47afff Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:21:20 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- crates/gh-workflow-tailcall/src/workflow.rs | 4 ++-- crates/gh-workflow-tailcall/tests/ci.rs | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/gh-workflow-tailcall/src/workflow.rs b/crates/gh-workflow-tailcall/src/workflow.rs index 0034e22..72ae43a 100644 --- a/crates/gh-workflow-tailcall/src/workflow.rs +++ b/crates/gh-workflow-tailcall/src/workflow.rs @@ -156,8 +156,8 @@ impl Workflow { fn workflow_cond(&self) -> Context { let is_main = Context::github().ref_().eq("refs/heads/main".into()); let is_push = Context::github().event_name().eq("push".into()); - let cond = is_main.and(is_push); - cond + + is_main.and(is_push) } fn workflow_event(&self) -> Event { diff --git a/crates/gh-workflow-tailcall/tests/ci.rs b/crates/gh-workflow-tailcall/tests/ci.rs index 4a7fa43..79b6838 100644 --- a/crates/gh-workflow-tailcall/tests/ci.rs +++ b/crates/gh-workflow-tailcall/tests/ci.rs @@ -2,5 +2,9 @@ use gh_workflow_tailcall::Workflow; #[test] fn generate() { - Workflow::default().auto_release(true).auto_fix(true).generate().unwrap(); + Workflow::default() + .auto_release(true) + .auto_fix(true) + .generate() + .unwrap(); }