From 1f11e7133de188bc5a83ff4b8462c69cf1c19174 Mon Sep 17 00:00:00 2001 From: Yusuke Sasaki Date: Thu, 11 Oct 2018 03:14:27 +0900 Subject: make `Template::extension()` static It is useful for calculating the media type without instantiating the context value. --- testing/tests/simple.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing') 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)] -- cgit