diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-10-06 11:39:16 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-11-01 12:52:09 +0100 |
commit | a7d879311611599594a5e7048eeeb70efcc5bb6b (patch) | |
tree | 91ffff6d67e757f2dac9d7a2c3ace30d0f0d99f6 | |
parent | 7979d5c1dd790d1821c9c4c77c848f47ac49c769 (diff) | |
download | askama-a7d879311611599594a5e7048eeeb70efcc5bb6b.tar.gz askama-a7d879311611599594a5e7048eeeb70efcc5bb6b.tar.bz2 askama-a7d879311611599594a5e7048eeeb70efcc5bb6b.zip |
Remove unnecessary type annotation
-rw-r--r-- | askama_derive/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 21b8d25..d4d86d0 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -25,7 +25,7 @@ pub(crate) fn build_template(ast: &syn::DeriveInput) -> Result<String, CompileEr let config_toml = read_config_file(template_args.config_path.as_deref())?; let config = Config::new(&config_toml, template_args.whitespace.as_ref())?; let input = TemplateInput::new(ast, &config, template_args)?; - let source: String = match input.source { + let source = match input.source { Source::Source(ref s) => s.clone(), Source::Path(_) => get_template_source(&input.path)?, }; |