From 7f40a7bc779c20d4e1bd8bdc59c45760a2e1f490 Mon Sep 17 00:00:00 2001 From: davidon-top Date: Sun, 28 Jan 2024 12:16:03 +0100 Subject: [PATCH] fix: not enaugh whitespaces --- .github/workflows/ci.yaml | 14 ++++++-------- Cargo.toml | 6 +++--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e7d8743..ceb7d32 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,7 +14,7 @@ env: CARGO_TERM_COLOR: always jobs: -{% if ci-tests %} +{% if ci-tests -%} test: name: Tests runs-on: ubuntu-latest @@ -25,9 +25,8 @@ jobs: uses: dtolnay/rust-toolchain@nightly - name: Run cargo test run: cargo test -{% endif %} - -{% if ci-clippy %} +{%- endif -%} +{% if ci-clippy -%} clippy_check: name: Clippy runs-on: ubuntu-latest @@ -41,9 +40,8 @@ jobs: components: clippy - name: Run clippy run: cargo clippy -- -D warnings -{% endif %} - -{% if ci-fmt %} +{%- endif -%} +{% if ci-fmt -%} format: name: Format runs-on: ubuntu-latest @@ -57,4 +55,4 @@ jobs: components: rustfmt - name: Run cargo fmt run: cargo fmt --all -- --check -{% endif %} +{%- endif -%} diff --git a/Cargo.toml b/Cargo.toml index 44b12c9..d5b7782 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,14 +10,14 @@ license = "{{license}}" repository = "git@github.com:{{username}}/{{project-name}}.git" [dependencies] -{%- if serde -%} +{% if serde -%} serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" {%- endif -%} -{%- if tracing -%} +{% if tracing -%} tracing = "0.1" tracing-subscriber = "0.3" {%- endif -%} -{%- if async -%} +{% if async -%} tokio = { version = "1.0", features = ["full"] } {%- endif -%}