diff --git a/src/legacy/resolver.rs b/src/legacy/resolver.rs index 6ede16c2..145dc4a1 100644 --- a/src/legacy/resolver.rs +++ b/src/legacy/resolver.rs @@ -119,11 +119,8 @@ where } pub fn typedef(defs: &mut TypeMap) -> ProcedureDataType { - let mut type_map = TypeMap::default(); - let arg_ty = TArg::reference(&mut type_map, &[]).inner; - let result_ty = TResult::reference(&mut type_map, &[]).inner; + let arg_ty = TArg::reference(defs, &[]).inner; + let result_ty = TResult::reference(defs, &[]).inner; - defs.append(&mut type_map); - ProcedureDataType { arg_ty, result_ty } }