aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLibravatar Yusuke Sasaki <yusuke.sasaki.nuem@gmail.com>2018-10-11 03:14:27 +0900
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-10-12 14:18:12 +0200
commit1f11e7133de188bc5a83ff4b8462c69cf1c19174 (patch)
treeea2638eb408ee3095d4639fedb15a561cbad32b9 /testing
parent2e0f7fb4978297a3e82b319ea9027cf65d1a7d49 (diff)
downloadaskama-1f11e7133de188bc5a83ff4b8462c69cf1c19174.tar.gz
askama-1f11e7133de188bc5a83ff4b8462c69cf1c19174.tar.bz2
askama-1f11e7133de188bc5a83ff4b8462c69cf1c19174.zip
make `Template::extension()` static
It is useful for calculating the media type without instantiating the context value.
Diffstat (limited to 'testing')
-rw-r--r--testing/tests/simple.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 9575daa..e19b32e 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -27,7 +27,7 @@ fn test_variables() {
Iñtërnâtiônàlizætiøn is important\n\
in vars too: Iñtërnâtiônàlizætiøn"
);
- assert_eq!(s.extension(), Some("html"));
+ assert_eq!(VariablesTemplate::extension(), Some("html"));
}
#[derive(Template)]