diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-10-06 14:26:00 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-10-07 07:37:46 +0200 |
commit | 9edf27d9446da0b6c00550544d37b6da633bd2b6 (patch) | |
tree | 322508cd629f600f049b56992723b989498221c9 | |
parent | e1497adb506ac1d7fa8d063b4474a5519d0c10d0 (diff) | |
download | askama-9edf27d9446da0b6c00550544d37b6da633bd2b6.tar.gz askama-9edf27d9446da0b6c00550544d37b6da633bd2b6.tar.bz2 askama-9edf27d9446da0b6c00550544d37b6da633bd2b6.zip |
Improve variable name to better reflect its type
-rw-r--r-- | askama_derive/src/lib.rs | 4 |
1 files 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(), |