diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-02 21:21:28 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-02 22:58:13 +0100 |
commit | ea2034e8062f8db6b5ae74ca8aeab4e2ee08479f (patch) | |
tree | 207b103539bacd4147c1ee274d3a1aa4938b7853 /askama_derive/src/input.rs | |
parent | 9085e1e3dd0ae9924433c6e5166c33e0f6d2a283 (diff) | |
download | askama-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.rs | 2 |
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)) }, ); |