aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-03-08 20:14:55 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-03-08 20:14:55 +0100
commited89e5f027154c22fdde54a54bf69dcdf3a3ce00 (patch)
treee3dedadc5ccafb4e54d5162c89f1b017326975d8 /askama_derive
parent9397378e4ef5f2c433f1ef638b47cb34413e8ebb (diff)
downloadaskama-ed89e5f027154c22fdde54a54bf69dcdf3a3ce00.tar.gz
askama-ed89e5f027154c22fdde54a54bf69dcdf3a3ce00.tar.bz2
askama-ed89e5f027154c22fdde54a54bf69dcdf3a3ce00.zip
Remove type parameter defaults from impls (fixes #12)
Diffstat (limited to 'askama_derive')
-rw-r--r--askama_derive/src/generator.rs4
1 files changed, 3 insertions, 1 deletions
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;
}