From ed89e5f027154c22fdde54a54bf69dcdf3a3ce00 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 8 Mar 2017 20:14:55 +0100 Subject: Remove type parameter defaults from impls (fixes #12) --- askama_derive/src/generator.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'askama_derive/src') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 6f75318..edde3fe 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -334,7 +334,9 @@ impl<'a> Generator<'a> { full_anno.append(","); orig_anno.append(","); } - param.to_tokens(&mut full_anno); + let mut impl_param = param.clone(); + impl_param.default = None; + impl_param.to_tokens(&mut full_anno); param.ident.to_tokens(&mut orig_anno); sep = true; } -- cgit