From ac815a4c17f01a520779e83b5f6f1b235f137e26 Mon Sep 17 00:00:00 2001 From: David Ellis Date: Tue, 19 Nov 2024 16:15:08 -0600 Subject: [PATCH] Fix a Rust typegen bug (#964) --- alan/src/lntors/typen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alan/src/lntors/typen.rs b/alan/src/lntors/typen.rs index e50d4d9c..a2adc718 100644 --- a/alan/src/lntors/typen.rs +++ b/alan/src/lntors/typen.rs @@ -154,7 +154,7 @@ pub fn ctype_to_rtype( _ => CType::fail("Bound types must be strings or rust imports"), } } - _ => Ok(("".to_string(), deps)), // TODO: Is this correct? + otherwise => ctype_to_rtype(otherwise, in_function_type, deps), } CType::Generic(name, args, _) => Ok((format!("{}<{}>", name, args.join(", ")), deps)), CType::Binds(n, args) => {