1 parent 6405ab5 commit 7c6f497Copy full SHA for 7c6f497
1 file changed
src/core/writers/fs_writer.rs
@@ -84,7 +84,10 @@ impl DbSetsFsWriter {
84
) -> Vec<String> {
85
known_types
86
.iter()
87
- .filter(|&t| content.contains(&format!(": {t}")) && t != struct_or_enum_name) // Check if struct/enum name appears in the content
+ .filter(|&t| {
88
+ (content.contains(&format!(": {t}")) || content.contains(&format!(": Option<{t}>")))
89
+ && t != struct_or_enum_name
90
+ }) // Check if struct/enum name appears in the content
91
.cloned()
92
.collect()
93
}
0 commit comments