From 9edf27d9446da0b6c00550544d37b6da633bd2b6 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 6 Oct 2018 14:26:00 +0200 Subject: Improve variable name to better reflect its type --- askama_derive/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index cb7793f..69cd686 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -35,8 +35,8 @@ pub fn derive_template(input: TokenStream) -> TokenStream { /// the parse tree and/or generated source according to the `print` key's /// value as passed to the `template()` attribute. fn build_template(ast: &syn::DeriveInput) -> String { - let file = read_config_file(); - let config = Config::new(&file); + let config_toml = read_config_file(); + let config = Config::new(&config_toml); let input = TemplateInput::new(ast, &config); let source: String = match input.source { Source::Source(ref s) => s.clone(), -- cgit