Fix visitors for generic structs

This commit is contained in:
Hugo Duncan 2015-05-14 17:29:14 -04:00
parent bdec0b3e63
commit 801f37b305

View File

@ -170,7 +170,7 @@ fn deserialize_visitor(
)
} else {
let placeholders : Vec<_> = trait_generics.ty_params.iter()
.map(|_| builder.ty().id("_"))
.map(|t| builder.ty().id(t.ident))
.collect();
let mut trait_generics = trait_generics.clone();
let mut ty_params = forward_ty_params.clone();