From 27b9ce2a00db1279e3d7ea3bc2dd39e3c54e72d1 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 18 Dec 2023 11:55:10 +0100 Subject: Make API more idiomatic --- askama_derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src/lib.rs') 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 { 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(); -- cgit