aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLibravatar jbg <39903+jbg@users.noreply.github.com>2019-10-28 14:45:36 +0000
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-10-28 15:45:36 +0100
commite0f60ca8dde7b828dcb440737f50f90639f33b70 (patch)
treee64a053ae777992e9837f1f7eb3163f9f512c47d /testing
parent81080812777c7a1998f579908f159e383e3c9a31 (diff)
downloadaskama-e0f60ca8dde7b828dcb440737f50f90639f33b70.tar.gz
askama-e0f60ca8dde7b828dcb440737f50f90639f33b70.tar.bz2
askama-e0f60ca8dde7b828dcb440737f50f90639f33b70.zip
Moved no-receiver size_hint method to a separate trait (#270)
Diffstat (limited to 'testing')
-rw-r--r--testing/tests/simple.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 519b87c..168644a 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -1,4 +1,4 @@
-use askama::Template;
+use askama::{SizedTemplate, Template};
use std::collections::HashMap;
@@ -24,7 +24,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!(VariablesTemplate::extension(), Some("html"));
+ assert_eq!(<VariablesTemplate as SizedTemplate>::extension(), Some("html"));
}
#[derive(Template)]