From edd828c48dab13d397a57c4bd4897045ebfb6bc8 Mon Sep 17 00:00:00 2001 From: natalie <22222885+espeon@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:40:35 -0600 Subject: [PATCH] Pass in defs instead of appending --- src/legacy/resolver.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 } }