Fix some small bugs
This commit is contained in:
@ -273,7 +273,9 @@ fn build_type(stmt: &TypeStatement) -> Result<TypeDefinition> {
|
||||
|
||||
for field in &stmt.fields {
|
||||
let typ = BaseType::from(&field.fieldtype);
|
||||
typedef.depends.insert(typ.clone());
|
||||
if stmt.name != field.fieldtype {
|
||||
typedef.depends.insert(typ.clone());
|
||||
}
|
||||
|
||||
if let Some(maptype) = &field.map {
|
||||
if maptype != "string" && maptype != "int" {
|
||||
|
Reference in New Issue
Block a user