diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-12-18 11:55:10 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-12-18 12:01:35 +0100 |
commit | 27b9ce2a00db1279e3d7ea3bc2dd39e3c54e72d1 (patch) | |
tree | 04ba9d50f83f429b2a319c460a728a88653dcfde /askama_derive/src/lib.rs | |
parent | 1b1ab5e1b94c136d3cd057f8214623a40e707e5f (diff) | |
download | askama-27b9ce2a00db1279e3d7ea3bc2dd39e3c54e72d1.tar.gz askama-27b9ce2a00db1279e3d7ea3bc2dd39e3c54e72d1.tar.bz2 askama-27b9ce2a00db1279e3d7ea3bc2dd39e3c54e72d1.zip |
Make API more idiomatic
Diffstat (limited to 'askama_derive/src/lib.rs')
-rw-r--r-- | askama_derive/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index f9f3d41..65160c5 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -37,7 +37,7 @@ pub fn derive_template(input: TokenStream) -> TokenStream { pub(crate) fn build_template(ast: &syn::DeriveInput) -> Result<String, CompileError> { let template_args = TemplateArgs::new(ast)?; let toml = template_args.config()?; - let config = Config::new(&toml, template_args.whitespace.as_ref())?; + let config = Config::new(&toml, template_args.whitespace.as_deref())?; let input = TemplateInput::new(ast, &config, &template_args)?; let mut templates = HashMap::new(); |