fix namespaces

This commit is contained in:
NikVolf 2016-04-13 13:30:58 +03:00
parent f5f79ee0a9
commit 1e1e567435

View File

@ -90,7 +90,7 @@ pub fn argument_replacement(
argument_replacement(builder, replacements, nested_ty).and_then(|replaced_with| { argument_replacement(builder, replacements, nested_ty).and_then(|replaced_with| {
let mut inplace_path = path.clone(); let mut inplace_path = path.clone();
match inplace_path.segments[0].parameters { match inplace_path.segments[0].parameters {
::syntax::ast::PathParameters::AngleBracketed(ref mut data) => { ast::PathParameters::AngleBracketed(ref mut data) => {
data.types = data.types.map(|_| replaced_with.clone()); data.types = data.types.map(|_| replaced_with.clone());
}, },
_ => {} _ => {}