From 5732732c2a6f2ee14330628221686b9cce558773 Mon Sep 17 00:00:00 2001 From: Dima Korolev Date: Fri, 17 Oct 2025 22:52:36 -0700 Subject: [PATCH] Only use `Box<>` for inner variants, not inner structs. --- typesystem/schema/schema.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typesystem/schema/schema.h b/typesystem/schema/schema.h index 981c5d3e..3ddd0ba7 100644 --- a/typesystem/schema/schema.h +++ b/typesystem/schema/schema.h @@ -987,7 +987,7 @@ struct LanguageSyntaxImpl final { AppendAsMultilineCommentIndentedTwoSpaces(os, Value(f.description)); } const auto& t = types_.at(f.type_id); - if (Exists(t) || Exists(t)) { + if (Exists(t)) { os << " pub " << SanitizeRustSymbol(f.name) << ": Box<" << TypeName(f.type_id) << ">,\n"; } else { os << " pub " << SanitizeRustSymbol(f.name) << ": " << TypeName(f.type_id) << ",\n";