From 5a4ac0fe462faf2a3ba3b3f4334863cdb4bbf45a Mon Sep 17 00:00:00 2001 From: Bardi Harborow Date: Fri, 12 Jul 2019 04:43:41 +1000 Subject: Implement selected clippy recommendations. --- askama_derive/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src/generator.rs') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index aa91de0..7757016 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -109,7 +109,7 @@ impl<'a> Generator<'a> { ); // Make sure the compiler understands that the generated code depends on the template files. - for (path, _) in self.contexts { + for path in self.contexts.keys() { // Skip the fake path of templates defined in rust source. let path_is_valid = match self.input.source { Source::Path(_) => true, -- cgit