mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-30 06:21:13 +00:00
Improve variable name to better reflect its type
This commit is contained in:
parent
e1497adb50
commit
9edf27d944
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user