From 6a50939ec2b41b842e3f4d2b71c5792ca4db269b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 22 Jan 2018 17:29:19 +0100 Subject: Cleanup warnings generated by clippy --- askama_shared/src/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_shared/src/input.rs') 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), } } } -- cgit