We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63e5512 + 5732732 commit e24846cCopy full SHA for e24846c
1 file changed
typesystem/schema/schema.h
@@ -987,7 +987,7 @@ struct LanguageSyntaxImpl<Language::Rust> final {
987
AppendAsMultilineCommentIndentedTwoSpaces(os, Value(f.description));
988
}
989
const auto& t = types_.at(f.type_id);
990
- if (Exists<ReflectedType_Struct>(t) || Exists<ReflectedType_Variant>(t)) {
+ if (Exists<ReflectedType_Variant>(t)) {
991
os << " pub " << SanitizeRustSymbol(f.name) << ": Box<" << TypeName(f.type_id) << ">,\n";
992
} else {
993
os << " pub " << SanitizeRustSymbol(f.name) << ": " << TypeName(f.type_id) << ",\n";
0 commit comments