mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-30 14:31:36 +00:00
Remove "unused type" warnings in tests
This commit is contained in:
parent
ed512051cf
commit
cefa443839
@ -331,6 +331,12 @@ fn test_flat_deep() {
|
||||
#[template(path = "let-base.html")]
|
||||
struct LetBase {}
|
||||
|
||||
#[test]
|
||||
fn test_let_base() {
|
||||
let t = LetBase {};
|
||||
assert_eq!(t.render().unwrap(), "");
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "let-child.html")]
|
||||
struct LetChild {}
|
||||
|
@ -350,6 +350,12 @@ impl FunctionTemplate {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_fn() {
|
||||
let t = FunctionTemplate;
|
||||
assert_eq!(t.render().unwrap(), "Hello, world1234!");
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(source = " {# foo -#} ", ext = "txt")]
|
||||
struct CommentTemplate {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user