File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -83,22 +83,19 @@ fn build_ref_fields(
83
83
fields : & [ FieldInstance ] ,
84
84
) -> Vec < i32 > {
85
85
match & kind {
86
- ShapeKind :: Class ( cls_id, type_params) => {
87
- if vm. known . array_class_id ( ) == * cls_id {
88
- if size == InstanceSize :: ObjArray {
89
- Vec :: new ( )
90
- } else {
91
- create_array_ref_fields ( vm, type_params[ 0 ] . clone ( ) )
92
- }
93
- } else if vm. known . string_class_id ( ) == * cls_id {
86
+ ShapeKind :: Class ( ..) => create_ref_fields ( vm, fields, Vec :: new ( ) ) ,
87
+
88
+ ShapeKind :: Array ( _cls_id, type_params) => {
89
+ if size == InstanceSize :: ObjArray {
94
90
Vec :: new ( )
95
91
} else {
96
- let ref_fields = Vec :: new ( ) ;
97
- create_ref_fields ( vm, & fields, ref_fields)
92
+ create_array_ref_fields ( vm, type_params[ 0 ] . clone ( ) )
98
93
}
99
94
}
100
95
101
- _ => create_ref_fields ( vm, & fields, Vec :: new ( ) ) ,
96
+ ShapeKind :: String => Vec :: new ( ) ,
97
+
98
+ _ => create_ref_fields ( vm, fields, Vec :: new ( ) ) ,
102
99
}
103
100
}
104
101
You can’t perform that action at this time.
0 commit comments