From ea2034e8062f8db6b5ae74ca8aeab4e2ee08479f Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 2 Jan 2020 21:21:28 +0100 Subject: Clean up clippy warnings --- askama_derive/src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src/input.rs') diff --git a/askama_derive/src/input.rs b/askama_derive/src/input.rs index 3b65640..6a54a99 100644 --- a/askama_derive/src/input.rs +++ b/askama_derive/src/input.rs @@ -155,7 +155,7 @@ impl<'a> TemplateInput<'a> { config .syntaxes .get(&s) - .expect(&format!("attribute syntax {} not exist", s)) + .unwrap_or_else(|| panic!("attribute syntax {} not exist", s)) }, ); -- cgit