mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 21:41:35 +00:00
Update formatting for rust 1.29.0 rustfmt
This commit is contained in:
parent
0711e3667b
commit
ba91884d76
@ -186,8 +186,7 @@ impl<'a> Context<'a> {
|
||||
} else {
|
||||
unreachable!()
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
}).collect();
|
||||
|
||||
Context {
|
||||
nodes,
|
||||
|
@ -133,7 +133,10 @@ fn test_nested_filter_ref() {
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(source = "{% let p = baz.print(foo.as_ref()) %}{{ p|upper }}", ext = "html")]
|
||||
#[template(
|
||||
source = "{% let p = baz.print(foo.as_ref()) %}{{ p|upper }}",
|
||||
ext = "html"
|
||||
)]
|
||||
struct FilterLetFilterTemplate {
|
||||
foo: String,
|
||||
baz: Baz,
|
||||
@ -157,7 +160,10 @@ fn test_filter_let_filter() {
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(source = "{{ foo|truncate(10) }}{{ foo|truncate(5) }}", ext = "txt")]
|
||||
#[template(
|
||||
source = "{{ foo|truncate(10) }}{{ foo|truncate(5) }}",
|
||||
ext = "txt"
|
||||
)]
|
||||
struct TruncateFilter {
|
||||
foo: String,
|
||||
}
|
||||
|
@ -182,7 +182,10 @@ enum Alphabet {
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(source = "{% if x == Alphabet::Alpha %}true{% endif %}", ext = "txt")]
|
||||
#[template(
|
||||
source = "{% if x == Alphabet::Alpha %}true{% endif %}",
|
||||
ext = "txt"
|
||||
)]
|
||||
struct PathCompareTemplate {
|
||||
x: Alphabet,
|
||||
}
|
||||
@ -194,7 +197,10 @@ fn test_path_compare() {
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(source = "{% for i in [\"a\", \"\"] %}{{ i }}{% endfor %}", ext = "txt")]
|
||||
#[template(
|
||||
source = "{% for i in [\"a\", \"\"] %}{{ i }}{% endfor %}",
|
||||
ext = "txt"
|
||||
)]
|
||||
struct ArrayTemplate {}
|
||||
|
||||
#[test]
|
||||
|
Loading…
x
Reference in New Issue
Block a user