diff --git a/ipc/codegen/src/typegen.rs b/ipc/codegen/src/typegen.rs index 73ce9a672..e339b6788 100644 --- a/ipc/codegen/src/typegen.rs +++ b/ipc/codegen/src/typegen.rs @@ -90,7 +90,7 @@ pub fn argument_replacement( argument_replacement(builder, replacements, nested_ty).and_then(|replaced_with| { let mut inplace_path = path.clone(); 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()); }, _ => {}