From 91e3c88d8f6428d41326869bbd8f6ece99145627 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 1 Jul 2023 15:44:04 +0200 Subject: derive: define separate ParseError type --- askama_derive/src/parser/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_derive/src/parser/tests.rs') 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%}\"" )); } -- cgit