From ca6b395158fdcb85c969d2d50e8a9baebc762b68 Mon Sep 17 00:00:00 2001 From: David Ellis Date: Tue, 19 Nov 2024 15:11:59 -0600 Subject: [PATCH] Fix a Rust typegen bug --- 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) => {