diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-01-22 17:29:19 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-01-22 17:29:51 +0100 |
commit | 6a50939ec2b41b842e3f4d2b71c5792ca4db269b (patch) | |
tree | 2e163d1b80df21281cb795f4e1cdea8ff0c520fd /askama_shared/src/input.rs | |
parent | e238032a7441d5174fd62038bc530fa8aa3a90f6 (diff) | |
download | askama-6a50939ec2b41b842e3f4d2b71c5792ca4db269b.tar.gz askama-6a50939ec2b41b842e3f4d2b71c5792ca4db269b.tar.bz2 askama-6a50939ec2b41b842e3f4d2b71c5792ca4db269b.zip |
Cleanup warnings generated by clippy
Diffstat (limited to 'askama_shared/src/input.rs')
-rw-r--r-- | askama_shared/src/input.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_shared/src/input.rs b/askama_shared/src/input.rs index e3b64da..5869af0 100644 --- a/askama_shared/src/input.rs +++ b/askama_shared/src/input.rs @@ -24,7 +24,7 @@ impl<'a> TemplateInput<'a> { (path, s.clone()) }, Source::Path(ref s) => { - let path = path::find_template_from_path(&s, None); + let path = path::find_template_from_path(s, None); let src = path::get_template_source(&path); (path, src) }, @@ -93,7 +93,7 @@ impl TemplateMeta { } else { panic!("ext value must be string literal"); }, - attr @ _ => panic!("unsupported annotation key '{}' found", attr), + attr => panic!("unsupported annotation key '{}' found", attr), } } } |