fix: not enaugh whitespaces
This commit is contained in:
parent
14079c99cd
commit
7f40a7bc77
2 changed files with 9 additions and 11 deletions
14
.github/workflows/ci.yaml
vendored
14
.github/workflows/ci.yaml
vendored
|
@ -14,7 +14,7 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
{% if ci-tests %}
|
{% if ci-tests -%}
|
||||||
test:
|
test:
|
||||||
name: Tests
|
name: Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -25,9 +25,8 @@ jobs:
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
- name: Run cargo test
|
- name: Run cargo test
|
||||||
run: cargo test
|
run: cargo test
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
|
{% if ci-clippy -%}
|
||||||
{% if ci-clippy %}
|
|
||||||
clippy_check:
|
clippy_check:
|
||||||
name: Clippy
|
name: Clippy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -41,9 +40,8 @@ jobs:
|
||||||
components: clippy
|
components: clippy
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
run: cargo clippy -- -D warnings
|
run: cargo clippy -- -D warnings
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
|
{% if ci-fmt -%}
|
||||||
{% if ci-fmt %}
|
|
||||||
format:
|
format:
|
||||||
name: Format
|
name: Format
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -57,4 +55,4 @@ jobs:
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- name: Run cargo fmt
|
- name: Run cargo fmt
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
|
|
|
@ -10,14 +10,14 @@ license = "{{license}}"
|
||||||
repository = "git@github.com:{{username}}/{{project-name}}.git"
|
repository = "git@github.com:{{username}}/{{project-name}}.git"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
{%- if serde -%}
|
{% if serde -%}
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if tracing -%}
|
{% if tracing -%}
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = "0.3"
|
tracing-subscriber = "0.3"
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if async -%}
|
{% if async -%}
|
||||||
tokio = { version = "1.0", features = ["full"] }
|
tokio = { version = "1.0", features = ["full"] }
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
Loading…
Reference in a new issue