aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/parser/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_derive/src/parser/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/parser/tests.rs b/askama_derive/src/parser/tests.rs
index 68cf14b..0e785eb 100644
--- a/askama_derive/src/parser/tests.rs
+++ b/askama_derive/src/parser/tests.rs
@@ -260,7 +260,7 @@ fn test_rust_macro() {
assert_eq!(
&*super::parse("{{a.b.c!( hello )}}", &syntax)
.unwrap_err()
- .msg,
+ .to_string(),
"problems parsing template source at row 1, column 7 near:\n\"!( hello )}}\"",
);
}
@@ -706,7 +706,7 @@ fn test_missing_space_after_kw() {
let syntax = Syntax::default();
let err = super::parse("{%leta=b%}", &syntax).unwrap_err();
assert!(matches!(
- &*err.msg,
+ &*err.to_string(),
"unable to parse template:\n\n\"{%leta=b%}\""
));
}