fix: whitespaces
This commit is contained in:
parent
b40a1f301b
commit
14079c99cd
2 changed files with 9 additions and 9 deletions
12
Cargo.toml
12
Cargo.toml
|
@ -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 -%}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{% if async %}
|
{%- if async -%}
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
println!("Hello, world!");
|
println!("Hello, world!");
|
||||||
}
|
}
|
||||||
{% else %}
|
{%- else -%}
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
println!("Hello, world!");
|
||||||
}
|
}
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
|
|
Loading…
Reference in a new issue