aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/input.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-01-02 21:21:28 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-01-02 22:58:13 +0100
commitea2034e8062f8db6b5ae74ca8aeab4e2ee08479f (patch)
tree207b103539bacd4147c1ee274d3a1aa4938b7853 /askama_derive/src/input.rs
parent9085e1e3dd0ae9924433c6e5166c33e0f6d2a283 (diff)
downloadaskama-ea2034e8062f8db6b5ae74ca8aeab4e2ee08479f.tar.gz
askama-ea2034e8062f8db6b5ae74ca8aeab4e2ee08479f.tar.bz2
askama-ea2034e8062f8db6b5ae74ca8aeab4e2ee08479f.zip
Clean up clippy warnings
Diffstat (limited to 'askama_derive/src/input.rs')
-rw-r--r--askama_derive/src/input.rs2
1 files changed, 1 insertions, 1 deletions
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))
},
);